开启端口:
firewall-cmd --zone=public --add-port=80/tcp --permanent
查询端口号80 是否开启:
firewall-cmd --query-port=80/tcp
重启防火墙:
firewall-cmd --reload
查询有哪些端口是开启的:
firewall-cmd --list-port
启动放火墙:
systemctl start firewalld
关闭防火墙:
systemctl stop firewalld
查看防火墙是否启动
systemctl status firewalld