查看防火墙状态: systemctl status firewalld.service

绿的running表示防火墙开启

执行关闭命令: systemctl stop firewalld.service

再次执行查看防火墙命令:systemctl status firewalld.service

执行开机禁用防火墙自启命令 : systemctl disable firewalld.service

防火墙的其他命令:

启动:systemctl start firewalld.service

防火墙随系统开启启动 : systemctl enable firewalld.service