本文地址http://comexchan.cnblogs.com/,尊重知识产权,转载请注明出处,谢谢!
注意:此操作需要使用root权限执行
首先查询防火墙状态:
service iptables status
下图所示信息表示当前防火墙处于开启状态
执行下述命令关闭防火墙:
service iptables stop

再次执行下述命令查看防火墙状态:
service iptables status

系统提示:iptables: Firewall is not running. 即表示停止成功
最后关闭防火墙开启自启:
chkconfig iptables off
检查开机自启是否关闭成功:
chkconfig --list iptables
如下图。全部为off则表示关机自启关闭成功