----The following operations are performed on centos7
----Add port on
firewall firewall-cmd --zone=public --add-port=80/tcp --permanent
----Delete port firewall on
firewall -cmd --zone=public --remove-port=80/tcp --permanent
firewall-cmd --list-ports #View open ports
firewall-cmd --reload #Restart firewall
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #Prohibit firewall from starting
firewall-cmd --state #View the default firewall status (notrunning is displayed when it is closed, and running is displayed when it is opened)