开始
开启防火墙,没有任何反应说明防火墙开启成功
systemctl start firewalld
关闭防火墙
systemctl stop firewalld
查看防火墙状态
systemctl status firewalld
//添加80端口
firewall-cmd —permanent —zone=public —add-port=80/tcp
//重启、生效
firewall-cmd —reload
//查看开放端口列表
firewall-cmd —permanent —zone=public —list-ports