When apache is installed in Linux, access IP addresses cannot be accessed! If the installation fails, the port 80 # netstat-lnt | grep80tcp00 ::80 ::: * LISTEN of the apache listener is successfully installed! Unable to use the telnetIP80 on the local machine -- but telnetIP22 is connected ~~ It may be that port 80 is not open. So Enable
When apache is installed in Linux
Access IP addresses cannot be accessed! If the installation fails, the port 80 of the apache listener is tested.
# Netstat-lnt | grep 80
Tcp 0 0: 80: * LISTEN
The installation is successful!
Think of using local telnet IP 80
--But the telnet IP Address 22 is connected ~ ~
It may be that port 80 is not open.
Therefore, port 80 is enabled.
1. enable port 80:/sbin/Iptables-I INPUT-p tcp -- dport 80-jACCEPT
2. save the configuration command:/etc/rc. d/init. d/iptables save
3. restart the service command:/etc/rc. d/init. d/iptables restart
4. check the opened Port:/etc/init. d/iptables status