在地址栏中输入http://localhost:8080 这么会跳到百度搜索页面! hosts文件只有一行:127.0.0.1 localhost

Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.

C:\Documents and Settings\Administrator>ping localhost

Pinging PC-20101015UOQH [127.0.0.1] with 32 bytes of data:

Reply from 127.0.0.1: bytes=32 time<1ms TTL=64
Reply from 127.0.0.1: bytes=32 time<1ms TTL=64
Reply from 127.0.0.1: bytes=32 time<1ms TTL=64
Reply from 127.0.0.1: bytes=32 time<1ms TTL=64

Ping statistics for 127.0.0.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:\Documents and Settings\Administrator>

第1个回答  2011-09-21
注册表的默认值被一些插件修改了吧。追问

能否详细说一下,改那些键值!改那些项

第2个回答  2011-09-21
你本机没有装 iis吧追问

ghost系统,以前也可以用localhost访问呀,现在必须用127.0.0.1,感觉别扭

追答

装个iis5.0 就好饿

第3个回答  2011-09-21
估计你安装了百度工具栏追问

没有百度工具栏

追答

ping显示localhost被解析到127.0.0.1
跳到百度搜索页面可能是localhost的8080端口没开
telnet localhost 8080试试

追问

我的服务器端口是9090。 telnet localhost 9090 能连接,但是在地址栏输入 http://loaclhoat:9090/ 就跳到百度搜索

追答

http://loaclhoat:9090/ 拼错了

追问

呵呵,没拼错也是去百度搜索

追答

那就是你的服务器返回404

本回答被提问者采纳
相似回答