龙空技术网

Linux手记:红帽6和红帽7关闭防火墙的操作不一样

小芒果爱发呆 221

前言:

眼前看官们对“linux关闭防火墙服务”大致比较关切,各位老铁们都需要剖析一些“linux关闭防火墙服务”的相关资讯。那么小编在网摘上网罗了一些关于“linux关闭防火墙服务””的相关资讯,希望各位老铁们能喜欢,看官们快快来了解一下吧!

最近混合使用了两种Linux系统,发现红帽6和7的防火墙操作不一样,在这里收集记录一下:

红帽6适用:

1. 永久性生效

开启:chkconfig iptables on

关闭:chkconfig iptables off

2. 即时生效,重启后失效

开启:service iptables start

关闭:service iptables stop

红帽7适用:

[root@rhel7 ~]# systemctl stop firewalld.service

[root@rhel7 ~]# systemctl disable firewalld.service

[root@rhel7 ~]# systemctl status firewalld.service

标签: #linux关闭防火墙服务