Linux发行版 CentOS6.5 禁用防火墙步骤

本文地址http://comexchan.cnblogs.com/,尊重知识产权,转载请注明出处,谢谢!

注意:此操作需要使用root权限执行

首先查询防火墙状态:

service iptables status

下图所示信息表示当前防火墙处于开启状态

image

执行下述命令关闭防火墙:

service iptables stop
image

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

service iptables status
image

系统提示:iptables: Firewall is not running. 即表示停止成功

最后关闭防火墙开启自启:

chkconfig iptables off

image

检查开机自启是否关闭成功:

chkconfig --list iptables

如下图。全部为off则表示关机自启关闭成功

image

原文地址:https://www.cnblogs.com/comexchan/p/5495215.html