vi /etc/sysconfig/iptables
将
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT (允许80端口)
添加到22端口配置的下面
最后如图:
重启防火墙:
/etc/init.d/iptables restart