当前位置:首页 > 操作系统 > Linux

Linux下关闭防火墙步骤

1   先查询防火墙状态

 /etc/init.d/iptable status

2   关闭防火墙

 /etc/init.d/iptable stop  (执行2次怕1次关不上)

3   查看是否开机自动启动 (数字3项)

[root@oldboy-09 ~]# chkconfig | grep iptables

iptables       0:off   1:off   2:on    3:on    4:on    5:on    6:off

4   关闭自动启动

[root@oldboy-09 ~]# chkconfig iptables off

5   检查是否关闭

[root@oldboy-09 ~]# chkconfig | grep iptables

iptables       0:off   1:off   2:off   3:off   4:off   5:off   6:off

 

原文:https://www.cnblogs.com/imp-W/p/10317814.html


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!

相关教程推荐

其他课程推荐