1
2
3
4
5
6
7
8
9
10
11
sudo systemctl status firewalld
sudo firewall-cmd --state

sudo systemctl stop firewalld
sudo systemctl disable firewalld // 禁止开机自启

firewall-cmd --zone=public --add-port=5005/tcp --permanent
firewall-cmd --zone=public --query-port=80/tcp
firewall-cmd --zone=public --remove-port=80/tcp --permanent

firewall-cmd --reload