Linux开机禁用开启防火墙

1.chkconfig --list:显示开机可以自动启动的服务

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

chkconfig iptables on

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

 

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

chkconfig --del iptables

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

posted @ 2020-04-13 17:37  胖胖123  阅读(418)  评论(0编辑  收藏  举报