Install TOMCAT7 under Linux (CENTOS7)

Source: Internet
Author: User

1. Download tomcat1.7.tar.gz

2. Place the file in the/usr/local

#cp tomcat1.7.tar.gz/usr/local

3. Go to/usr/local and unzip tomcat1.7.tar.gz

#cd/usr/local

#tar-ZXVF tomcat1.7.tar.gz Decompression

#rm tomcat1.7.tar.gz Delete a compressed package

#mv tomcat1.7 Tomcat renaming

4. Start Tomcat

#/usr/local/tomcat/bin/startup.sh

5. Turn off Tomcat

#/usr/local/tomcat/bin/shutdown.sh

Note: If you start tomcat with an error that the JDK environment variable is not registered, you need to manually write

1. Edit/usr/local/tomcat/bin/setclasspath.sh

#gedit/usr/local/tomcat/bin/setclasspath.sh

2. Insert

Export java_home=/usr/local/java/jdk1.7.0_45

Export JRE_HOME=/USR/LOCAL/JAVA/JDK1.7.0_45/JRE

6. Add 8080 ports to the firewall configuration

#vi +/etc/sysconfig/iptables

Add the following code
-A rh-firewall-1-input-m state--state new-m tcp-p TCP--dport 8080-j ACCEPT

Save Exit VI

Restarting the firewall

#service iptables Restart

Install TOMCAT7 under Linux (CENTOS7)

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.