tomcat启动成功但是localhost8080访问不了(127.0.0.1:8080能访问主页)

tomcat启动成功但是localhost8080访问不了(127.0.0.1:8080能访问主页)

问题描述:

我的tomcat成功启动了,环境变量配置好了的,端口也没被占用,但是localhost:8080却找不到服务器,127.0.0.1:8080能访问tomcat欢迎界面。(host文件也有127.0.0.1 localhost)

在你的操作系统上关闭防火墙,或者启用8080端口,把你的tomcat绑定到你的本地ip
http://blog.csdn.net/paomadeng/article/details/1826880

编辑C:\WINDOWS\system32\drivers\etc\hosts文件,设置如下:
127.0.0.1 localhost