查看防火墙 firewall-cmd --state 关闭防火墙 systemctl stop firewalld.service 开启防火墙 systemctl start firewalld.service 重启防火墙 systemctl restart firewalld.service