1. 操作命令
启动
systemctl start firewalld
关闭
systemctl stop firewalld
查看状态
systemctl status firewalld
开机禁用
systemctl disable firewalld
开机启用
systemctl enable firewalld
添加端口
firewall-cmd --zone=public --add-port=80/tcp --permanent
删除端口
firewall-cmd --zone=public --remove-port=80/tcp --permanent
重新载入
firewall-cmd --reload
查看开放端口
firewall-cmd --zone=public --list-ports