1.修改iptables配置,添加80端口


[root@localhost ~]# iptables -I INPUT -p tcp --dport 80 -j ACCEPT

2.保存配置


[root@localhost ~]# service iptables save

3.重启防火墙


[root@localhost ~]# service iptables restart