Tomcat applications on linux servers cannot be accessed due to firewall restrictions
Source: Internet
Author: User
The CentOS6.3 system is used because the firewall restricts access to tomcat applications on linux servers. Problem Replay: The tomcat service is started, but the tomcat application page on the server cannot be accessed. Solution: Set the port in the firewall configuration: Command: www.2cto. c...
The CentOS6.3 system is used because the firewall restricts access to tomcat applications on linux servers. Problem reproduction:
The tomcat service is started, but the tomcat application page on the server cannot be accessed. Solution: in the firewall configuration, set the port: Command: www.2cto.com # cd/etc/sysconfig # vi iptables to iptables: -A RH-Firewall-1-INPUT-p tcp-m state -- state NEW-m tcp -- dport 8051-j ACCEPT description: Port 8051 is activated here, in the config/server of tomcat. modify xml (because the default tomcat port is 8080). you can activate it as needed, for example, change 8051 to 8080. Www.2cto.com restart iptables service: # service iptables stop # service iptables start re-access, successful:
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