【问题标题】:localhost - can't connect本地主机 - 无法连接
【发布时间】:2012-03-22 12:24:37
【问题描述】:

我在 Windows 7 机器上安装了一个 WAMP 包,并且所有东西(Apache、php、MySQL、phpMyAdmin)似乎都已正确安装。

但是,当我尝试通过浏览器访问 localhost 或 phpMyAdmin 时,我收到错误 Server Not Found

我尝试过使用:

在所有情况下,我都会遇到相同的错误。

我检查了 httpd 文件,上面写着Listen 80

C:\Windows\System32\drivers\etc\hosts127.0.0.1 localhost

apache 日志说:

[Sun Mar 04 16:07:51 2012] [notice] Apache/2.2.22 (Win32) PHP/5.3.10 configured -- resuming normal operations

[Sun Mar 04 16:07:51 2012] [notice] Server built: Jan 28 2012 11:16:39

[Sun Mar 04 16:07:51 2012] [notice] Parent: Created child process 2636

[Sun Mar 04 16:07:51 2012] [notice] Child 2636: Child process is running

[Sun Mar 04 16:07:51 2012] [notice] Child 2636: Acquired the start mutex.

[Sun Mar 04 16:07:51 2012] [notice] Child 2636: Starting 64 worker threads.

[Sun Mar 04 16:07:51 2012] [notice] Child 2636: Starting thread to listen on port 80.

还有什么我应该尝试的吗?

【问题讨论】:

  • 你有其他运行类似 IIS7 的服务器吗?您是否尝试将 wamp 配置为在 80 以外的端口上启动?
  • @cale_b:您没有完全阅读。他提到了他的主机文件的适当部分。在那里。他还提到他尝试过127.0.0.1
  • 我在使用 5.3.10 和 WAMP 时遇到了类似的问题,但如果我切换到 5.3.0 或(安装并)切换到 5.3.1,它工作正常。

标签: localhost wamp


【解决方案1】:

确保您没有在端口 80 上运行其他任何东西。例如,Skype 默认侦听端口 80 和 443,因此它们对我来说是冲突的。如果您还在运行 Skype,请转到选项和连接 > 高级以使用端口 80 和 443 禁用它。

【讨论】:

  • 比但 Skype 没有运行。
猜你喜欢
  • 2014-11-06
  • 2016-01-01
  • 2022-01-15
  • 2021-06-20
  • 2015-07-26
  • 2015-11-04
  • 2016-04-25
  • 2015-12-25
相关资源
最近更新 更多