检查端口是否开放 如果没有开放端口就执行下面的 sudo firewall-cmd --add-port=8080/tcp --permanent (8080是端口号) sudo firewall-cmd --reload