Linux防火墙关闭与开启多种方式

1. 防火墙即时生效,重启系统后失效

开启: [root@StevenRH6 ~]# service iptables start
关闭: [root@StevenRH6 ~]# service iptables stop

2. 防火墙重启系统后永久生效

开启: [root@StevenRH6 ~]# chkconfig iptables on
关闭: [root@StevenRH6 ~]# chkconfig iptables off

3. 修改系统启动配置文件的方式

开启: [root@StevenRH6 ~]# chkconfig --level 35 iptables on
关闭: [root@StevenRH6 ~]# chkconfig --level 35 iptables off

 

 

posted @ 2017-06-06 17:01  苏格拉底爱唱歌  阅读(200)  评论(0编辑  收藏  举报