修改
vim /etc/sysconfig/iptables
插入: -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
关闭: /etc/init.d/iptables stop
开启: /etc/init.d/iptables start
查看状态: iptables -nL
修改
vim /etc/sysconfig/iptables
插入: -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
关闭: /etc/init.d/iptables stop
开启: /etc/init.d/iptables start
查看状态: iptables -nL
转载于:https://www.cnblogs.com/wuzg/p/9815029.html