centos7的一些变化,firewalld替换iptables、systemctl 替换service

2023-10-27

1.防火墙命令用firewalld取代了iptables了。

查看防火墙状态   systemctl status firewalld

临时关闭防火墙命令,reboot之后,防火墙自动起来。   systemctl stop firewalld

永久关闭防火墙命令。reboot之后,防火墙不会自动启动    systemctl disable firewalld

启动防火墙命令   systemctl enable firewalld

2.用systemctl 代替了service,不过为了向后兼容,centos7中,service还是可以用的。

如使用systemctl关闭防火墙

systemctl stop firewalld.service


对防火墙进行操作,需要使用root权限。。


本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

centos7的一些变化,firewalld替换iptables、systemctl 替换service 的相关文章

随机推荐