查看防火墙是否开启 chkconfig iptables --list
iptables 0:off 1:off 2:off 3:off 4:off 5:off 6:off
chkconfig --add iptables //iptables 添加到系统服务
chkconfig --level 2345 iptables on //修改服务的默认启动级别
现在再看chkconfig iptables --list
iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off