centos8 防火墙

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

1.检查防火墙状态

systemctl status firewalld.service

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

 2.关闭防火墙

systemctl stop firewalld.service

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

3.禁用防火墙

systemctl disable firewalld.service

原文地址:https://www.cnblogs.com/xwer/p/14883601.html