(1), to the Apache official website (http://tomcat.apache.org/download-60.cgi) Download
apache-tomcat-6.0.29.tar.gz files.
(2), decompression and unpacking
Enter command:
TAR-ZXVF apache-tomcat-6.0.29.tar.gz
There is a apache-tomcat-6.0.29 folder under the directory, renamed Tomcat
(3), modify environment variables
Modify profile file under directory/etc
Export Catalina_home=/usr/local/tomcat
Export classpath=.: $JAVA _home/lib: $CATALINA _home/lib
Export path= $PATH: $CATALINA _home/bin
To execute a command:
Source/etc/profile
To view environment variables:
Echo $CLASSPATH
Start Tomcat:
./catalina.sh start (Turn off Tomcat./shutdown.sh stop)
(4), Test
To see if Tomcat has started netstat-ntl |grep 8080
Browser address bar Input http://localhost:8080/
If you can see the Tomcat Welcome page that represents the consolidation success, you have completed the JAVA/JSP server.