In Linux, Tomcat is enabled on port 80.

Source: Internet
Author: User
& Nbsp; solution: In linux, if the port of tomcat server. xml is changed to 80, tomcat cannot be started as tomcat. Start tomcat on redhat (change the port in server. xml to 80) su-tomcat-c $ CATALINA_HOME/bin/startup. sh and the following error occurs: Catalina. star  

Solution: In linux, after the Port of tomcat server. xml is changed to 80, tomcat cannot be started as tomcat.

Start tomcat on redhat (change the port in server. xml to 80)

Su-tomcat-c "$ CATALINA_HOME/bin/startup. sh"

The following error occurs: Catalina. start: LifecycleException: null. open: java.net. BindException: Permission denied: 80.

This is because only the root user can access ports lower than 1024.

Solution: change the port in server. xml to 8080 again.

Then: iptables-t nat-a prerouting-p tcp -- dport 80-j REDIRECT -- to-port 8080

(If 443 is used, the above method is also executed)

You can.

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.