Install Tomcat in Linux and Tomcat in Linux

Source: Internet
Author: User

Install Tomcat in Linux and Tomcat in Linux

Install jdk (Java 2 Software Development Kit) before installing and using Tomcat. To install jdk, refer to my previous blog.

Install Tomcat

1. Download apache-tomcat-7.0.59.tar.gz

2) # tar-zxvf apache-tomcat-7.0.59.tar.gz; // Extract

3) # cp-R apache-tomcat-7.0.59/usr/local/tomcat; // copy apache-tomcat-7.0.59 to/usr/local/and rename it tomcat

Configure the environment variables before starting tomcat,

Export CATALINA_HOME =/usr/local/tomcat
Export CATALINE_BASH =/usr/local/tomcat

4)/usr/local/tomcat/bin/startup. sh; // start tomcat

/Usr/local/tomcat/bin/shutdown. sh disable tomcat

4) test # ip: 8080 indicates that the tomcat page is successful

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.