centos8 防火墙

开发环境方便调试,关闭centos的防火墙:

1.检查防火墙状态

systemctl status firewalld.service

 acitve 表示当前防火墙是打开的

centos8 防火墙

 

 2.关闭防火墙

systemctl stop firewalld.service

 这种关闭在下次机器重启后防火墙仍会启动, 要想禁用防火墙

3.禁用防火墙

systemctl disable firewalld.service

centos8 防火墙

 

上一篇:(八)shell编程之数组,字符串还有高级变量


下一篇:Centos8安装Mongodb