firewall-cmd --permanent --list-port //防火墙通过的端口
firewall-cmd --permanent --remove-port=48489/tcp //删除防火墙通过的端口
firewall-cmd --zone=public --add-port=26611/tcp --permanent ?//允许端口通过防火墙
firewall-cmd --reload //重新加载
systemctl start firewalld//开启防火墙
systemctl stop firewalld.service //停止firewall
firewall-cmd --state //查看默认防火墙状态
转载于:https://www.cnblogs.com/bky-mc/p/9766404.html