常用命令
查看防火墙状态:
sudo systemctl status firewalld
或
firewall-cmd --state
关闭防火墙命令:
sudo systemctl stop firewalld
或
systemctl stop firewalld.service
打开防火墙命令:
sudo systemctl start firewalld
或
systemctl start firewalld.service
禁止firewall开机启动:
sudo systemctl disable firewalld
或
systemctl disable firewalld.service