After installing Tomcat on Linux, the client input address HTTP://IP address is inaccessible and port 80 cannot be accessed.
Because Linux firewall is turned off by default, Port 80. Therefore, to be able to access port 80, you can use two ways, one is to turn off the firewall, and the other is to let the firewall open 80 ports.
The steps to open port 80 are as follows:
1, modify the/etc/sysconfig/iptables file, add the following line:
-A input-m state--state new-m tcp-p TCP--dport 80-j ACCEPT
Restart Iptables
Service Iptables Restart
2. Two ways of firewall settings
1) effective after reboot
Turn on firewall: Chkconfig iptables on
Turn off firewall: Chkconfig iptables off
2) immediate effect, failure after reboot
Fire Resistance: Service iptables start
Shut down firewall: Service iptables stop
Service iptables Status View firewall state
Linux designated Ports Open