Install Tomcat 6 on centos yum

Source: Internet
Author: User
Install Tomcat 6 on centos yum

Install Tomcat 6

1 Yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps

Start tomcat6

1 Service tomcat6 start

Stop tomcat6

1 Service tomcat6 stop

Restart Tomcat 6

1 Service tomcat6 restart

Install Tomcat 6 in the/usr/share/tomcat6/directory by default.

The default configuration file directory is/etc/tomcat6 /.

If you cannot access http: // localhost: 8080/, port 8080 is used by the firewall. The solution is as follows:

1 Iptables-A input-p tcp -- dport 8080-J accept
2 Iptables-A output-p tcp -- Sport 8080-J accept
Related Article

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.