The current java on wwwp path is: /usr/lib/jvm/jre-1.6.0-sun.x86_64/bin/java
We need the Java JDK instead of Jre.
Downloaded current JDK 1.6 from Sun web site: jdk-6u13-linux-x64-rpm.bin
> cp -p /tmp/jdk-6u13-linux-x64-rpm.bin /var/www/.
> chmod a+x /var/www/jdk-6u13-linux-x64-rpm.bin
> ./jdk-6u13-linux-x64-rpm.bin
> /usr/sbin/alternatives --install /usr/bin/java java /usr/java/latest/bin/java 1
> /usr/sbin/alternatives --config java choose the java you wanted.
Package name is "jdk-1.6.0_13-fcs". To view the package info, use command:
>rpm -qc jdk
Download Tomcat 1.6 tar.gz
> tar -zxvf jakarta-tomcat-6.x.xx.tar.gz
Create a symbolic link to a tomcat directory:
> ln -s apache-tomcat-6.0.26 tomcat
After install Tomcat, use another user account instead of root to run the Tomcat:
1. Add a group:
> /usr/sbin/groupadd other
2. See if the group is added:
> grep other /etc/group
If you see something like this, it is added, otherwise do it again:
> other:x:1000000:
3. List users:
> cat /etc/passwd
Monday, May 11, 2009
Subscribe to:
Posts (Atom)