1, firewall port operation
firewall-cmd --zone=public --add-port=80/tcp --permanent
80 open ports, open ports use a period (80-90) (- permanent permanent, this argument does not restart after failure)
firewall-cmd --reload
Reload
firewall-cmd --zone=public --list-ports
View all open ports (port verify whether open)
firewall-cmd --zone= public --remove-port=80/tcp --permanent
Delete open ports
---------------------------------------------------------------------------------
2, firewall common operation
systemctl start firewalld
Start firewall
systemctl stop firewalld
Turn off the firewall
systemctl status firewalld
Check firewall status
systemctl enable firewalld
Power On
systemctl disable firewalld
Disable boot