Linux installation Tomcat6 Steps __linux

Source: Internet
Author: User

(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 Catalina_home=/usr/local/tomcat

Export classpath=.: $JAVA _home/lib: $CATALINA _home/lib

Export path= $PATH: $CATALINA _home/bin

To execute a command:

Source/etc/profile

To view environment variables:

Echo $CLASSPATH

Start Tomcat:

./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/

If you can see the Tomcat Welcome page that represents the consolidation success, you have completed the JAVA/JSP server.

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.