php shell_exec 函数的问题

Issue with php shell_exec function

在执行 shell_exec 时,我得到了给定的日志。日志不会停止并导致高服务器日志。

我尝试了不同版本的 php(php 5.6、php 7.0、php 7.1)但没有希望。

有任何可用的修复程序吗?

[24-Aug-2017 12:38:57] NOTICE: [pool www] child 112108 exited with code 0 after 58.651699 seconds from start

[24-Aug-2017 12:38:57] NOTICE: [pool www] child 112161 started [24-Aug-2017 12:38:57] NOTICE: [pool www] child 112161 exited with code 0 after 0.002603 seconds from start

[24-Aug-2017 12:38:57] NOTICE: [pool www] child 112162 started [24-Aug-2017 12:38:57] NOTICE: [pool www] child 112162 exited with code 0 after 0.001959 seconds from start

[24-Aug-2017 12:38:57] NOTICE: [pool www] child 112108 exited with code 0 after 58.651699 seconds from start

[24-Aug-2017 12:38:57] NOTICE: [pool www] child 112161 started [24-Aug-2017 12:38:57] NOTICE: [pool www] child 112161 exited with code 0 after 0.002603 seconds from start

经过简短的研究,我发现 this Articel 这可能对您有所帮助。将 php-fpm.conf 中的 log_level 从 notice 设置为 warning 应该就足够了。这将抑制此消息。

您的进程退出并重生的原因是您在 php-fpm 池配置文件中设置了 pm.max_requests 选项。