什么可能导致 Windows 7 下 WAMP 出现 101 错误?

Bra*_*ayn 6 windows-7 apache-2.2

我使用 WAMP 进行本地开发已经有一段时间了,但最近我在浏览 localhost 站点时收到错误 101 消息。这可能是在上次 WAMP 更新之后出现的,但我不是 100% 确定这一点。如果我一次又一次地尝试,刷新几个页面后它可以工作,但它真的很烦人!

确切的错误消息是:

Error 101 (net::ERR_CONNECTION_RESET): Unknown error. 
Run Code Online (Sandbox Code Playgroud)

这是我的配置:

  • 操作系统:Windows 7
  • 阿帕奇:2.2.11
  • PHP:5.2.9-2
  • WAMP:2.0

此外,本地脚本连接到远程 MySQL 服务器,它们不使用本地 MySQL(我不知道这是否重要,尽管我让您知道)。

我一直在查看 apache 日志,我发现了以下内容。似乎 apache 服务器不断重启,我不知道为什么:

[Wed Oct 14 13:52:30 2009] [notice] Parent: child process exited with status 255 -- Restarting.
[Wed Oct 14 13:52:30 2009] [notice] Apache/2.2.11 (Win32) PHP/5.2.9-2 configured -- resuming normal operations
[Wed Oct 14 13:52:30 2009] [notice] Server built: Dec 10 2008 00:10:06
[Wed Oct 14 13:52:30 2009] [notice] Parent: Created child process 6784
[Wed Oct 14 13:52:31 2009] [notice] Child 6784: Child process is running
[Wed Oct 14 13:52:31 2009] [notice] Child 6784: Acquired the start mutex.
[Wed Oct 14 13:52:31 2009] [notice] Child 6784: Starting 64 worker threads.
[Wed Oct 14 13:52:31 2009] [notice] Child 6784: Starting thread to listen on port 80.
[Wed Oct 14 13:52:32 2009] [notice] Parent: child process exited with status 255 -- Restarting.
[Wed Oct 14 13:52:33 2009] [notice] Apache/2.2.11 (Win32) PHP/5.2.9-2 configured -- resuming normal operations
[Wed Oct 14 13:52:33 2009] [notice] Server built: Dec 10 2008 00:10:06
[Wed Oct 14 13:52:33 2009] [notice] Parent: Created child process 3572
[Wed Oct 14 13:52:33 2009] [notice] Child 3572: Child process is running
[Wed Oct 14 13:52:33 2009] [notice] Child 3572: Acquired the start mutex.
[Wed Oct 14 13:52:33 2009] [notice] Child 3572: Starting 64 worker threads.
[Wed Oct 14 13:52:33 2009] [notice] Child 3572: Starting thread to listen on port 80.
Run Code Online (Sandbox Code Playgroud)

此外,我还检查了 Windows 防火墙并禁用了我在这台计算机上的任何其他保护,但没有任何改进。

谢谢!

小智 5

我有同样的问题。

  • 操作系统:Windows 7
  • 服务器:Apache 2.2.17-win32
  • MySQL:5.1.53-win32
  • PHP:5.2.14-Win32

替换C:/<MySQL Dir>/bin/libMySQL.dllC:/PHP/libmysql.dll解决了我的问题。

当您尝试使用 mysql_connect 连接到数据库时会发生该错误。它显示在上面错误日志中的以下行中。

[Wed Oct 14 13:52:32 2009] [notice] Parent: child process exited with status 255 -- Restarting.
Run Code Online (Sandbox Code Playgroud)

因此,当 mysql_connect 尝试连接时,Apache 会崩溃。所以libmysql.dll在这里使用正确是有帮助的。


Ist*_*van 0

连接重置必须由win7防火墙完成,您必须打开Windows防火墙(只需在打开的开始菜单中键入它就会出现)并明确允许端口80。我希望它有所帮助。