【发布时间】:2017-07-10 18:56:40
【问题描述】:
我正在使用 localhost 获取 WAMP 服务器页面。 但是在 Chrome 中使用 127.0.0.1 时,我得到了
This site can’t be reached
127.0.0.1 took too long to respond.
在 Mozilla 我得到了
The connection has timed out
The server at 127.0.0.1 is taking too long to respond.
所以错误是相似的。
httpd.conf 设置如下:
Listen 0.0.0.0:80
Listen [::0]:80
httpd-vhosts.conf 是这样的:
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost
DocumentRoot e:/wamp/www
<Directory "e:/wamp/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
主机文件内容:
127.0.0.1 localhost
::1 localhost
在 CMD 中更新 ping 响应:
C:\Users\pkj>ping 127.0.0.1
Pinging 127.0.0.1 with 32 bytes of data:
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
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
【问题讨论】:
-
你检查过 wamp 工作了吗?很可能使用端口 80 和 443 进行Skype
-
@RooshanAkthar wamp 正在工作,因为 OP 说 localhost 加载正常
-
@Pawan ,尝试打开你的 CMD 和
ping 127.0.0.1截图并添加到这里 -
您在运行 WAMPServer 的 PC 上执行此操作,对吗?不是来自您网络上的另一台 PC?
-
@RiggsFolly - 是的,我正在运行 Wampserver 的 PC 上执行此操作。不是来自网络上的另一台 PC。