查看防火墙状态:

systemctl status firewalld.service

1.png
停止防火墙服务

systemctl stop firewalld.service

2.png
systemctl disable firewalld.service 禁用防火墙自动启动

3.png
如果想开启防火墙的服务,则输入如下命令:

systemctl enable firewalld.service
systemctl start firewalld.service

4.png