在ie中输入http://localhost:8080提交请求时,一直访问不到页面
2011-10-13 17:03
519 查看
今天同事碰到一个问题,安装tomcat后,输入http://localhost:8080后,一直处于响应状态, 无法访问tomcat上面的页面。感觉很诡异。最后发现,C:\Windows\System32\drivers\etc目录下的hosts文件被修改了
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
127.0.0.1 mic............
这是因为有上面红色内容,当我们请求时,系统自动给转交请求了,根本连不到tomcat服务器,晕死。很难想到会出现这样的问题吧
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
127.0.0.1 mic............
这是因为有上面红色内容,当我们请求时,系统自动给转交请求了,根本连不到tomcat服务器,晕死。很难想到会出现这样的问题吧
相关文章推荐
- 解决IE无法访问http://localhost/8080但是可以访问http://127.0.0.1/8080
- 启动tomcat后访问页面http://localhost:8080/报错
- Tomcat能启动和停止,但是输入http://localhost:8080/不能显示页面
- 安装tomcat后,运行bin目录下的startup.bat后,启动浏览器在地址栏输入http://localhost:8080回车后显示不了tomcat页面的原因
- 在地址栏输入http://localhost:8080 查看Tomcat文档时 ie提示输入 XDB 用户名/密码的解决方案[转]
- Tomcat配置成功,但输入http://localhost:8080/不显示界面的解决方法
- 去除html页面中GET《 http://localhost:8080/favicon.ico 404 (Not Found)》
- Tomcat中startup.bat可以正常运行,但是无法访问http://localhost:8080/
- Tomcat在eclipse里面能正常启动,而在浏览器中访问http://localhost:8080/不能访问,且报404错
- http://localhost:8080/main.do?action=index改成http://localhost:8080/来访问首页
- [转]eclipse3.6(helios)配置Tomcat后无法访问http://localhost:8080/
- win7系统iis部署好,但是程序运行后页面报错“HTTP 错误 500.19 - Internal Server Error 无法访问请求的页面,因为该页的相关配置数据无效。“
- eclipse启动tomcat 访问http://localhost:8080 报404错误
- eclipse配置tomcat,访问http://localhost:8080出现404错误
- eclipse配置tomcat,访问http://localhost:8080出现404错误
- Android HttpUrlConnection 发送Post请求 PHP页面$_POST接收不到问题
- eclipse中tomcat启动成功,但http://localhost:8080无法访问解决方案
- android 中访问localhost:8080 报错org.apache.http.conn.HttpHostConnectException
- 服务器http://localhost:8080要求用户输入用户名和密码并提示XDB?
- tomcat启动,访问http://localhost:8080时报http status 404