查看防火墙的状态命令:sudo systemctl status firewalld

打开防火墙命令:sudo systemctl start firewalld

关闭防火墙命令:sudo systemctl stop firewalld