firewall-cmd --zone=public --list-ports
开放8080端口firewall-cmd --add-port=8080/tcp --permanent开放端口后需要重启防火墙 service firewalld restart
关闭 systemctl stop firewalld 禁止开机后启动防火墙 systemctl disable firewalld