2006021740@Centos8防火墙关闭/开启,开机关闭/开启
1 firewall防火墙状态
firewall-cmd --state
2 firewall防火墙关闭
注意:是关闭firewalld.service,systemctl stop firewalld.service
systemctl stop firewalld.service
firewall-cmd --state
3 firewall防火墙开启
systemctl start firewalld.service
4 firewall防火墙开机自启
systemctl enable firewalld.service
5 firewall防火墙开机关闭
systemctl disable firewalld.service