开启apache后只需iptables开启80端口便可成功让外网访问到

1
2
3
4
iptables -I INPUT 1 -i eth0 -p tcp --dport 80 -m state --state NEW,ESTABLISHED
-j ACCEPT
service iptables save
service iptables restart