防火墙通用命令:sudo systemctl [ 命令] firewalld
查看防火墙状态:sudo systemctl status firewalld
关闭防护墙,开机恢复:sudo systemctl stop firewalld
关闭防护墙,开机不恢复:sudo systemctl disable firewalld
开启防火墙,开机恢复:sudo systemctl start firewalld
开启防火墙,开机恢复:sudo systemctl enable firewalld
原文:https://www.cnblogs.com/hellodaydream/p/14840890.html