systemctl status firewalld.service # 查看防火墙状态 systemctl start firewalld.service # 开启防火墙 systemctl stop firewalld.service # 关闭防火墙 systemctl enable firewalld.service # 将防火墙设置为开机自启动 systemctl disable firewalld.service # 关闭开机自启动