Linux TOMCAT6 installation and configuration __linux

Source: Internet
Author: User

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

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.