1.打开8080端口 firewall-cmd --zone=public --add-port=8080/tcp --permanent
2.重启防火墙 firewall-cmd --reload
3.输入ip:8080 结果如图 即为成功