centOS开启apache无法让外网访问:开启80端口

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

 

posted @ 2017-04-05 15:55  mashaz  阅读(2138)  评论(0编辑  收藏  举报