0

我是用的win764位系统,php5.4 ,apache总是在运行几天后崩溃,就是弹出一个停止工作的窗口,你必须手动把这个窗口关闭apache才能再运行,否则所有的业务就都不会再运行。日志如下:

[Mon May 13 08:09:32.753078 2019] [mpm_winnt:notice] [pid 91684:tid 388] AH00455: Apache/2.4.23 (Win32) OpenSSL/1.0.2j PHP/5.4.45 configured -- resuming normal operations
[Mon May 13 08:09:32.753078 2019] [mpm_winnt:notice] [pid 91684:tid 388] AH00456: Server built: Jul 1 2016 16:42:20
[Mon May 13 08:09:32.753078 2019] [core:notice] [pid 91684:tid 388] AH00094: Command line: 'D:\phpstudy\PHPTutorial\Apache\bin\httpd.exe -d D:/phpstudy/PHPTutorial/Apache'
[Mon May 13 08:09:32.774079 2019] [mpm_winnt:notice] [pid 91684:tid 388] AH00418: Parent: Created child process 56348
[Mon May 13 08:09:34.758192 2019] [mpm_winnt:notice] [pid 56348:tid 404] AH00354: Child: Starting 1920 worker threads.
[Tue May 14 08:42:26.360759 2019] [core:warn] [pid 107692:tid 388] AH00098: pid file D:/phpstudy/PHPTutorial/Apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Tue May 14 08:42:26.593772 2019] [mpm_winnt:notice] [pid 107692:tid 388] AH00455: Apache/2.4.23 (Win32) OpenSSL/1.0.2j PHP/5.4.45 configured -- resuming normal operations
[Tue May 14 08:42:26.593772 2019] [mpm_winnt:notice] [pid 107692:tid 388] AH00456: Server built: Jul 1 2016 16:42:20
[Tue May 14 08:42:26.593772 2019] [core:notice] [pid 107692:tid 388] AH00094: Command line: 'D:\phpstudy\PHPTutorial\Apache\bin\httpd.exe -d D:/phpstudy/PHPTutorial/Apache'
[Tue May 14 08:42:26.603773 2019] [mpm_winnt:notice] [pid 107692:tid 388] AH00418: Parent: Created child process 85628
[Tue May 14 08:42:28.317871 2019] [mpm_winnt:notice] [pid 85628:tid 404] AH00354: Child: Starting 1920 worker threads.

我已经把conf-mpm.conf里的线程数改了很大,无济于事,配置如下:
<IfModule mpm_winnt_module>

ThreadsPerChild      5000
MaxRequestsPerChild    20000   

</IfModule>

另外我是在机器上开了若干个任务计划,定时使用php远程读取一些数据,我手动运行这些bat的时候没有任何异常和报错,不知道这个问题如何解决,请朋友们指点

2019-05-14 提问
2 个回答
0

已采纳

我也不知道为什么后来没事了,感觉好像是长期开着navicat界面就报错,关掉就没事了?

0

这里面并没有错误信息,做多只有警告你D:/phpstudy/PHPTutorial/Apache/logs/httpd.pid被覆盖因为上次没有正常关闭的。这个警告不会中断运行。所以从你的这些日志内容分析不出啥问题来。你再找找有没有其他日志。

撰写答案

推广链接