现在的位置: 首页 > 综合 > 正文

不能打开localhost 但是能打开127.0.0.1 ; 可以访问127.0.0.1,不能访问localhost

2012年03月24日 ⁄ 综合 ⁄ 共 222字 ⁄ 字号 评论关闭

可以访问127.0.0.1,不能访问localhost

1.确定C:\WINDOWS\system32\drivers\etc\hosts文件中是不是存在
127.0.0.1       localhost

且这一行没有被#注释掉。如果没有则添加。试验能不能访问localhost。

2。看看网络连接属性是不是添加了IP V6。先卸载,重启。试验能不能访问localhost。

如果需要IP V6则在能正常访问localhost后再添加。

一般经过上述2步即可。

抱歉!评论已关闭.