The specific process for installing and configuring Tomcat under Ubuntu7.10 is as follows: 1. download the latest version 6.0.14http: // latest on the Apache official website.
The specific process for installing and configuring Tomcat in Ubuntu7.10 is as follows:
1. download the latest version 6.0.14 from the Apache official website.
Http://apache.mirror.phpchina.com/tomcat/tomcat-6/v6.0.14/bin/apache-tomcat-6.0.14.tar.gz
Http://www.apache.org/dist/tomcat/tomcat-6/v6.0.14/bin/apache-tomcat-6.0.14.tar.gz.md5
Http://www.apache.org/dist/tomcat/tomcat-6/v6.0.14/bin/apache-tomcat-6.0.14.tar.gz.asc
(Tomcat5.5 for sun-java5-jdk)
Decompress the package and copy it to the opt directory.
Sudo tar zxvf ~ Apache-tomcat-6.0.14.tar.gz
Sudo cp-R apache-tomcat-6.0.14/opt/apache-tomcat-6.0.14
2. environment variables:
Sudo gedit ~ /. Bashrc
Add the following two lines at the end of the file:
Export JAVA_HOME =/usr/lib/jvm/java-6-sun
Export PATH = $ PATH: $ JAVA_HOME/bin
3. Configure tomcat:
Start Eclipse, Window> Perferences> MyEclipse> Application Servers> Tomcat 6
Select Enble and the installation directory of tomcat 6/opt/apache-tomcat-6.0.14
After the configuration is complete, you can test it, start Tomcat 6, and enter