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