确保在服务器内tomcat能访问 访问不了一般是防火墙限制了,这时候要设置端口例外 参考下面链接 https://jingyan.baidu.com/article/d621e8da36b86d2865913f1c.html