添加放行端口
firewall-cmd --zone=public --add-port=端口号/tcp --permanent
重启防火墙
systemctl restart firewalld.service
查看防火墙状态
firewall-cmd --state
查看放行端口
firewall-cmd --list-all
2021-10-24 20:29:30
firewall-cmd --zone=public --add-port=端口号/tcp --permanent
systemctl restart firewalld.service
firewall-cmd --state
firewall-cmd --list-all