CentOS8查看防火墙状态,开启、关闭系统防火墙

作者:美云 发布日期:2022/3/3 16:11:04 浏览次数:4136 复制

1,查看防火墙状态

systemctl status firewalld.service

2,开启防火墙

systemctl start firewalld.service

3,关闭防火墙

systemctl stop firewalld.service

4,禁用防火墙

systemctl disable firewalld.service