详细的日志错误:
ERROR: failed to ptrace(PEEKDATA) pid 27077: Input/output error (5)
WARNING: [pool www] child 27024, script '/usr/data/ckl-backend/index.php' (request: "GET /index.php") executing too slow (10.384578 sec), logging
ERROR: failed to ptrace(PEEKDATA) pid 27024: Input/output error (5)
WARNING: [pool www] child 26924, script '/usr/data/ckl-backend/index.php' (request: "GET /index.php") executing too slow (10.986032 sec), logging
ERROR: failed to ptrace(PEEKDATA) pid 26924: Input/output error (5)
WARNING: [pool www] child 1918, script '/usr/data/ckl-backend/index.php' (request: "GET /index.php") executing too slow (10.408103 sec), logging
ERROR: failed to ptrace(PEEKDATA) pid 1918: Input/output error (5)
解决:
禁止slowlog,将下面两个参数注释# vim php-fpm.conf
#request_slowlog_timeout = 10s
#slowlog = /usr/local/log/php-fpm/ckl-slow.log
修改最大执行时间# vim php.ini
max_execution_time = 60
重启进程:service php-fpm restart