firewall-cmd --list-all #查看所有端口
firewall-cmd --permanent --zone=public --add-port=8080/tcp #开启端口
firewall-cmd --reload #重新加载防火墙
firewall-cmd --zone=public --query-port=8080/tcp
systemctl stop firewalld.service
systemctl start firewalld.service
systemctl restart firewalld.service