Terracotta EhCache 3.4 installation
The installation steps are for RHEL 5 64 bit
1) Create user
#useradd -m cacheadm
#passwd cacheadm
Login an cacheadm
2) Install Java environment
Download JDK 1.6 update latest from http://java.sun.com/javase/downloads/index.jsp
I downloaded 64-bit JDK.
Copy to /opt or install folder
#./jdk-6u22-linux-x64.bin
This should install Java under directory jdk1.6.0_22
Note: You can also install JRE alone the same way. JDK comes with utilities such as jar, jconsole, jstack are not available in JRE
3) Set Java runtime
Edit your profile file to set system runtime variables.
# vi /home/cacheadm/.bash_profile
Update your profile file to read as the following.
# cat /home/jbossadm/.bash_profile
PATH=$PATH:$HOME/bin
JAVA_HOME=/opt/jdk1.6.0_22
export JAVA_HOME
export PATH=$JAVA_HOME/bin:$PATH
Exit the shell and re-login for the changes to take effect
4) Verify Java path and version
#which java
#java -version
5) Install Terracotta Distribute Cache
Download terracotta-3.3.0-ee-installer.jar from http://www.terracotta.org/
Copy to /opt or install folder
# export DISPLAY={ip}:0.0
# java -jar terracotta-ee-3.4.0-installer.jar
Set the installation path as /opt/terracotta-3.4/terracotta-ee-3.4.0
Complete the installation
Download the license key from Terracotta website and copy it to /opt/terracotta-3.4/terracotta-ee-3.4.0 directory. The license file is terracotta-license.key
6) Update ~/.bash_profile file
JAVA_HOME=/opt/jdk1.6.0_22
TERRACOTTA_HOME=/opt/terracotta-3.4/terracotta-ee-3.4.0
export JAVA_HOME
export PATH=$JAVA_HOME/bin:$TERRACOTTA_HOME/bin:$PATH
7) Start Terracotta
Execute ./start-tc-server.sh
On successful start, the following message will be written.
INFO - Terracotta Server instance has started up as ACTIVE node on 0:0:0:0:0:0:0:0:9510 successfully, and is now ready for work.
8) Launch dev console
# export DISPLAY={ip}:0.0
$TERRACOTTA_HOME/bin/dev-console.sh
Right click on Terracotta cluster and connect
If you see console with login window, please specify the following
Server host: localhost or server name
JMX port: 9520
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home