开启防火墙
sudo systemctl start firewalld.service
关闭防火墙
sudo systemctl stop firewalld.service
重启防火墙
sudo systemctl restart firewalld.service
查看防火墙状态
sudo firewall-cmd --state
(关闭后显示not running,开启后显示running)
开启防火墙
sudo systemctl start firewalld.service
关闭防火墙
sudo systemctl stop firewalld.service
重启防火墙
sudo systemctl restart firewalld.service
查看防火墙状态
sudo firewall-cmd --state
(关闭后显示not running,开启后显示running)