nginx php-fpm child退出,代码为0

前端之家收集整理的这篇文章主要介绍了nginx php-fpm child退出,代码为0前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

PHP-fpm 7和11.0-RELEASE-p8的任何人都有类似的问题,或者知道如何调试它?

情况在几分钟后开始,仅向客户显示半页.任何页面显示约62kb的内容,结尾 4.

PHP-fpm的日志文件

[18-Mar-2017 15:41:49] NOTICE: [pool www] child 80582 exited with code 0 after 0.005648 seconds from start
[18-Mar-2017 15:41:49] NOTICE: [pool www] child 80584 started
[18-Mar-2017 15:41:49] NOTICE: [pool www] child 80583 exited with code 0 after 0.005877 seconds from start
[18-Mar-2017 15:41:49] NOTICE: [pool www] child 80585 started
[18-Mar-2017 15:41:49] NOTICE: [pool www] child 80581 exited with code 0 after 0.007763 seconds from start
[18-Mar-2017 15:41:49] NOTICE: [pool www] child 80586 started
[18-Mar-2017 15:41:49] NOTICE: [pool www] child 80585 exited with code 0 after 0.005653 seconds from start
[18-Mar-2017 15:41:49] NOTICE: [pool www] child 80587 started
[18-Mar-2017 15:41:49] NOTICE: [pool www] child 80586 exited with code 0 after 0.005820 seconds from start
[18-Mar-2017 15:41:49] NOTICE: [pool www] child 80588 started

PHP配置:

$PHP -v
PHP 7.0.17 (cli) (built: Mar 17 2017 02:07:44) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0,Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.17,Copyright (c) 1999-2017,by Zend Technologies

PHP-FPM.conf

pm = dynamic
pm.max_children = 25
pm.start_servers = 2
pm.min_spare_servers = 2
pm.max_spare_servers = 3
pm.max_requests = 0 ;changing to 500
最佳答案
代码中使用exec函数时,它是PHP-fpm错误.好的做法是阻止它们,这样就不会出现这样的问题.

https://bugs.php.net/bug.php?id=73342

bug已开放4年了.

猜你在找的Nginx相关文章