添加80端口 重啓後永久生效html
firewall-cmd --zone=public --add-port=80/tcp --permanent
查看防火牆狀態tcp
systemctl status firewalld.service
啓動防火牆rest
systemctl start firewalld.service
關閉防火牆code
systemctl stop firewalld.service
重啓防火牆htm
systemctl restart firewalld.service
禁用防火牆 、 禁止防火牆開機啓動blog
systemctl disable firewalld.service