目录
1.firewall防火墙状态查看
firewall-cmd --state
[root@localhost qjy]# firewall-cmd --state
running
2.firewall防火墙关闭
注意:是关闭firewalld.service,systemctl stop firewalld.service
[root@localhost qjy]# systemctl stop firewalld.service
[root@localhost qjy]# firewall-cmd --state
not running
3.firewall防火墙开启
systemctl start firewalld.service
[root@localhost qjy]# systemctl start firewalld.service
[root@localhost qjy]# firewall-cmd --state
running