首页 > 系统服务 > 详细

Linux开机禁用开启防火墙

时间:2017-03-03 18:57:01      阅读:216      评论:0      收藏:0      [点我收藏+]

1.显示iptables服务开机是否自动启动.

chkconfig --list |grep iptables
iptables    0:off    1:off    2:on    3:on    4:on    5:on    6:off
#表示iptables开机自动开启2、3、4、5级服务.

2.chkconfig --add 命令名: 添加开机自动启动命令名服务

chkconfig --add iptables   #开机自动启动iptables服务;

开机后通过命令iptables -L -n校验是否设置成功;

3. chkconfig --del 命令名: 删除开机自动启动命令名服务

chkconfig --del iptables   #开机禁止启动iptables服务.
#开机后通过命令iptables -L -n校验是否设置成功

  

  

  

  

 

Linux开机禁用开启防火墙

原文:http://www.cnblogs.com/saneri/p/6497961.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!