Distributed Advanced (iv) Install Tomcat 6 under Ubuntu 10.04

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.