Tomcat cannot access the problem under Linux (in other words: no access to port 8080)

Source: Internet
Author: User

Sometimes tomcat other machines under Linux can not access, such as the host can not access the Linux virtual machine tomcat, this is because Tocat port, Linux is not open to the outside, so only localhost access, but other machines can not access the solution is as follows

Edit iptables file for Linux: Vi/etc/sysconfig/iptables

Copy one sentence: The command that has opened the 22 port is changed to 8080 as well:

-A input-m state--state new-m tcp-p TCP--dport 22-j accept allows a port to pass, where the Tomcat port is set to 8080, add this sentence to the Iptables file:-a input-m s Tate--state new-m tcp-p TCP--dport 8080-j ACCEPT and restart the Iptables service: Service iptables Restart finally restart the Tomcat service

Tomcat cannot access the problem under Linux (in other words: no access to port 8080)

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.