Install Tomcat 6 under Ubuntu 10.04
1, download apache-tomcat6,
Address link:http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.28/bin/
Choose Ubuntu Linux for version, which is the apache-tomcat-6.0.28.tar.gz file,
2, Copy the installation file to the /usr/local/ directory, enter the command in console console ,
sudo cp/home/shq/ desktop /apache-tomcat-6.0.28.tar.gz/usr/local
sudo tar-zxvf apache-tomcat-6.0.28.tar.gz,
Unzip the installation package into the/home/shq/apache-tomcat-6.0.28 directory,
3,console Input command:sudo gedit/home/shq/apache-tomcat-6.0.28/bin/ Startup.sh,
Configure the startup.sh file, add the following configuration items,
java_home=/usr/lib/ Java /jdk1.6.0_ $
Path= $JAVA _home/bin: $PATH
Classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
tomcat_home=/ Home/shq /apache-tomcat-6.0.28
The java_home , among others, is shown in the Sun JDK installation article above.
Save exit.
4, enter /home/shq/apache-tomcat-6.0.28/bin/ directory,
Enter the command:
CD/Home/shq/apache-tomcat-6.0.28/bin,
sudo./startup.sh
Start the Tomcat server,
If it appears:
Using catalina_base:/usr/local/apache-tomcat-6.0.28
Using Catalina_home:/usr/local/apache-tomcat-6.0.28
Using Catalina_tmpdir:/usr/local/apache-tomcat-6.0.28/temp
Using Jre_home:/usr/lib/sunjvm/jdk/jdk1.6.0_20
Using CLASSPATH:/usr/local/apache-tomcat-6.0.28/bin/bootstrap.jar
Code, then basically started normally, enter http://localhost:8080/ to see if the familiar Tomcat Welcome interface can appear.
5, Other configuration, can configure conf/server.xml files, such as port number, etc.
Input command:sudo gedit/usr/local/apache-tomcat-6.0.28/conf/server.xml
<Connector port= "protocol=" http/1.1 "
connectiontimeout= "20000"
Redirectport= "8443" uriencoding= "UTF-8"/>
Change the listening port to uriencoding=, add "UTF-8" to support the Chinese parameter pass processing.
The Stop shutdown Server command is:
sudo./shutdown.sh
Distributed Advanced (iv) Install Tomcat 6 under Ubuntu 10.04