CentOS 6.5 Installation Tomcat7

Source: Internet
Author: User

Prerequisite: Need to download apache-tomcat-7.0.57.tar.gz, and has built the Java environment

Installation steps:

1. Copy the apache-tomcat-7.0.57.tar.gz to the Linux system/usr/local directory

2. Decompression: # TAR-ZVXF apache-tomcat-7.0.57.tar.gz

3. Renamed: # MV Apache-tomcat-7.0.57.tar.gz TOMCAT7

4. Firewall release 8080 port: # vim/etc/sysconfig/iptables

5. Insert a row in the text:-A input-m State--state new-m tcp-p TCP--dport 8080-j ACCEPT

6. Reboot firewall: # service iptables restart

7. Start Tomcat: #/usr/local/tomcat7/bin/startup.sh

8. Test: Access the test in the browser

9. Turn off Tomcat: #/usr/local/tomcat7/bin/shutdown.sh

Reference article: http://blog.csdn.net/feng4656/article/details/11900211



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.