gpt4 book ai didi

apache - 连接已在 wamp 上重置

转载 作者:行者123 更新时间:2023-12-02 04:22:24 26 4
gpt4 key购买 nike

我已经在我的电脑上安装了 wamp 服务器。然后我安装了一个 zend 应用程序。我将其放在 www 目录中的 medaffiliate.com 目录中。当我通过 localhost/medaffiliate.com 访问该目录时,它只会显示

 The connection was reset

我已经浏览了很多答案,例如 https://serverfault.com/questions/74313/what-could-cause-an-101-error-in-wamp-under-windows-7

他们都在说要关闭mysql_close($connect);。我的 Apache 错误日志显示了我

     [Sat Jul 21 18:35:45 2012] [notice] Parent: child process exited with status 255 -- Restarting.
[Sat Jul 21 18:35:45 2012] [notice] Apache/2.2.17 (Win32) PHP/5.3.4 configured -- resuming normal operations
[Sat Jul 21 18:35:45 2012] [notice] Server built: Oct 24 2010 13:33:15
[Sat Jul 21 18:35:45 2012] [notice] Parent: Created child process 6768
[Sat Jul 21 18:35:45 2012] [notice] Child 6768: Child process is running
[Sat Jul 21 18:35:45 2012] [notice] Child 6768: Acquired the start mutex.
[Sat Jul 21 18:35:45 2012] [notice] Child 6768: Starting 64 worker threads.
[Sat Jul 21 18:35:45 2012] [notice] Child 6768: Starting thread to listen on port 80.
[Sat Jul 21 18:36:21 2012] [notice] Parent: child process exited with status 255 -- Restarting.
[Sat Jul 21 18:36:21 2012] [notice] Apache/2.2.17 (Win32) PHP/5.3.4 configured -- resuming normal operations
[Sat Jul 21 18:36:21 2012] [notice] Server built: Oct 24 2010 13:33:15
[Sat Jul 21 18:36:21 2012] [notice] Parent: Created child process 1140
[Sat Jul 21 18:36:21 2012] [notice] Child 1140: Child process is running
[Sat Jul 21 18:36:21 2012] [notice] Child 1140: Acquired the start mutex.
[Sat Jul 21 18:36:21 2012] [notice] Child 1140: Starting 64 worker threads.
[Sat Jul 21 18:36:21 2012] [notice] Child 1140: Starting thread to listen on port 80.
[Sat Jul 21 18:40:39 2012] [notice] Parent: child process exited with status 255 -- Restarting.
[Sat Jul 21 18:40:39 2012] [notice] Apache/2.2.17 (Win32) PHP/5.3.4 configured -- resuming normal operations
[Sat Jul 21 18:40:39 2012] [notice] Server built: Oct 24 2010 13:33:15
[Sat Jul 21 18:40:39 2012] [notice] Parent: Created child process 7892
[Sat Jul 21 18:40:39 2012] [notice] Child 7892: Child process is running
[Sat Jul 21 18:40:39 2012] [notice] Child 7892: Acquired the start mutex.
[Sat Jul 21 18:40:39 2012] [notice] Child 7892: Starting 64 worker threads.
[Sat Jul 21 18:40:39 2012] [notice] Child 7892: Starting thread to listen on port 80.

我发现其他人在创建与数据库的连接时也面临这样的问题。我在 www 目录中创建了另一个项目并与数据库建立连接。这是工作。但不是我的项目。

我正在使用os:window 7。Apache:2.2.17,PHP:5.3.4,Mysql:5.1.53

最佳答案

我遇到了类似的问题,无法通过增加超时和内存限制来解决。

经过几个小时的反复试验,我终于偶然发现了另一篇文章:https://drupal.org/node/1597820 ,这为我解决了这个问题。

将以下内容添加到 httpd.conf 的末尾,将 Apache 堆栈大小增加到 8MB。

<IfModule mpm_winnt_module>
ThreadStackSize 8388608
</IfModule>

关于apache - 连接已在 wamp 上重置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11593047/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com