开发者社区> 问答> 正文

新手求助系统刚换一天网站又访问不了!

服务器运行正常,无任何系统错误日志,重启apache和mysql,网站恢复正常!查看apache日志如下:

[Tue Jun 23 20:54:51.388722 2015] [mpm_winnt:notice] [pid 1728:tid 1668] AH00358: Child: Process exiting because it reached MaxConnectionsPerChild. Signaling the parent to restart a new child process.
[Tue Jun 23 20:54:51.388722 2015] [mpm_winnt:notice] [pid 2688:tid 452] AH00424: Parent: Received restart signal -- Restarting the server.
[Tue Jun 23 20:54:51.873103 2015] [mpm_winnt:notice] [pid 2688:tid 452] AH00455: Apache/2.4.10 (Win32) OpenSSL/0.9.8zb PHP/5.2.17 configured -- resuming normal operations
[Tue Jun 23 20:54:51.873103 2015] [mpm_winnt:notice] [pid 2688:tid 452] AH00456: Apache Lounge VC9 Server built: Jul 19 2014 13:20:51
[Tue Jun 23 20:54:51.873103 2015] [core:notice] [pid 2688:tid 452] AH00094: Command line: 'D:\\phpStudy\\Apache\\bin\\httpd.exe -d D:/phpstudy/Apache'
[Tue Jun 23 20:54:51.873103 2015] [mpm_winnt:notice] [pid 2688:tid 452] AH00418: Parent: Created child process 2308
[Tue Jun 23 20:54:53.013742 2015] [mpm_winnt:notice] [pid 2308:tid 1668] AH00354: Child: Starting 150 worker threads.
Starting the Apache2a service
The Apache2a service is running.
[core:warn] [pid 2764:tid 452] AH00098: pid file D:/phpstudy/Apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Tue Jun 23 21:33:57.371772 2015] [mpm_winnt:notice] [pid 2764:tid 452] AH00455: Apache/2.4.10 (Win32) OpenSSL/0.9.8zb PHP/5.2.17 configured -- resuming normal operations
[Tue Jun 23 21:33:57.371772 2015] [mpm_winnt:notice] [pid 2764:tid 452] AH00456: Apache Lounge VC9 Server built: Jul 19 2014 13:20:51
[Tue Jun 23 21:33:57.371772 2015] [core:notice] [pid 2764:tid 452] AH00094: Command line: 'D:\\phpStudy\\Apache\\bin\\httpd.exe -d D:/phpstudy/Apache'
[Tue Jun 23 21:33:57.371772 2015] [mpm_winnt:notice] [pid 2764:tid 452] AH00418: Parent: Created child process 476
[Tue Jun 23 21:33:58.168658 2015] [mpm_winnt:notice] [pid 476:tid 1668] AH00354: Child: Starting 150 worker threads.
[Tue Jun 23 21:34:18.950174 2015] [autoindex:error] [pid 476:tid 3532] [client 66.249.67.53:38014] AH01276: Cannot serve directory D:/phpstudy/WWW/: No matching DirectoryIndex (index.html,index.php,index.htm,l.php) found, and server-generated directory index forbidden by Options directive
[Tue Jun 23 21:36:53.280274 2015] [:error] [pid 476:tid 3516] [client 66.249.67.59:56082] script 'D:/phpstudy/WWW/brand.php' not found or unable to stat
[font='Helvetica Neue', 'Luxi Sans', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', STHeiti, 'Microsoft YaHei']

哪个大神帮我分析下

展开
收起
恒纳 2015-06-24 10:38:44 17014 0
2 条回答
写回答
取消 提交回答
  • 回1楼mytsing520的帖子
    [Mon Jun 29 05:35:37.459989 2015] [:error] [pid 6056:tid 948] [client 66.249.64.186:40333] script

    'D:/phpstudy/WWW/brand.php' not found or unable to stat
    [Mon Jun 29 05:41:38.916582 2015] [:error] [pid 6056:tid 1060] [client 66.249.64.186:52577] script

    'D:/phpstudy/WWW/brand.php' not found or unable to stat
    [Mon Jun 29 05:47:40.529037 2015] [:error] [pid 6056:tid 1108] [client 66.249.64.175:40086] script

    'D:/phpstudy/WWW/brand.php' not found or unable to stat
    [Mon Jun 29 05:47:42.279048 2015] [:error] [pid 6056:tid 1132] [client 66.249.64.165:38185] script

    'D:/phpstudy/WWW/category.php' not found or unable to stat
    [Mon Jun 29 05:54:59.549910 2015] [autoindex:error] [pid 6056:tid 1172] [client 123.125.71.90:32709]

    AH01276: Cannot serve directory D:/phpstudy/WWW/: No matching DirectoryIndex

    (index.html,index.php,index.htm,l.php) found, and server-generated directory index forbidden by Options

    directive
    [Mon Jun 29 05:56:56.692034 2015] [:error] [pid 6056:tid 1180] [client 66.249.64.176:55885] script

    'D:/phpstudy/WWW/category.php' not found or unable to stat
    [Mon Jun 29 05:56:58.410806 2015] [:error] [pid 6056:tid 1184] [client 66.249.64.186:34952] script

    'D:/phpstudy/WWW/category.php' not found or unable to stat
    [Mon Jun 29 05:57:25.083022 2015] [autoindex:error] [pid 6056:tid 1172] [client 220.181.108.178:19819]

    AH01276: Cannot serve directory D:/phpstudy/WWW/: No matching DirectoryIndex

    (index.html,index.php,index.htm,l.php) found, and server-generated directory index forbidden by Options

    directive
    [Mon Jun 29 06:03:13.337378 2015] [:error] [pid 6056:tid 1212] [client 66.249.64.186:57103] script

    'D:/phpstudy/WWW/category.php' not found or unable to stat
    [Mon Jun 29 06:18:15.567574 2015] [:error] [pid 6056:tid 1464] [client 66.249.64.186:63444] script

    'D:/phpstudy/WWW/category.php' not found or unable to stat
    [Mon Jun 29 06:20:30.741179 2015] [autoindex:error] [pid 6056:tid 1464] [client 123.125.71.95:60141]

    AH01276: Cannot serve directory D:/phpstudy/WWW/: No matching DirectoryIndex

    (index.html,index.php,index.htm,l.php) found, and server-generated directory index forbidden by Options

    directive
    [Mon Jun 29 06:25:43.620184 2015] [mpm_winnt:error] [pid 6056:tid 26860] AH00326: Server ran out of threads

    to serve requests. Consider raising the ThreadsPerChild setting

    应该如何解决?

    -------------------------

    Re新手求助系统刚换一天网站又访问不了!
    目前一周多,没有崩过了,也没有httpd错误了,优化了apache的连接数,
    <IfModule mpm_winnt.c>    
    ThreadsPerChild 300    
    MaxRequestsPerChild  5000    
        
    以上在httpd.conf配置,一下在httpd.mpm.conf配置
    <IfModule mpm_winnt_module>
        ThreadsPerChild      300
        MaxRequestsPerChild    5000  
          
    </IfModule>
    参数根据你的服务器配置进行相应设置,需要同学可以参考下,百度上都没有统一的一个设置和教程,各说各的。
    2015-06-29 08:58:21
    赞同 展开评论 打赏
  • 连接数到达环境最大设定
    2015-06-24 14:12:07
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
如何拥有一个个人网站 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载