Linux Tomcat 6 Installation and configuration
(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 java_home=/opt/jdk1.6.0_21
Export tomcat_home=/opt/apache-tomcat-6.0.32
Export path= $PATH: $TOMCAT _home/bin
Where jdk1.6.0_21 is the installation directory for JDK.
Apache-tomcat-6.0.32 is the Tomcat installation directory
To execute a command:
Source/etc/profile Enable configuration Files
To view environment variables:
Echo $JAVA _home
Start Tomcat: (Go to the directory of Tomcat installation, bin directory)
./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/
(6) The project packaging file is placed under WebApps (WebApps directory under the Tomcat installation directory)
(7) Remote debugging connection, or local debugging connection