![PHP70-FPM 错误:无法读取子项的内容:错误的文件描述符 (9)](https://linux22.com/image/702335/PHP70-FPM%20%E9%94%99%E8%AF%AF%EF%BC%9A%E6%97%A0%E6%B3%95%E8%AF%BB%E5%8F%96%E5%AD%90%E9%A1%B9%E7%9A%84%E5%86%85%E5%AE%B9%EF%BC%9A%E9%94%99%E8%AF%AF%E7%9A%84%E6%96%87%E4%BB%B6%E6%8F%8F%E8%BF%B0%E7%AC%A6%20(9).png)
我的日志中不断收到以下错误php-fpm
。我已阅读并尝试了 serverfault.com 上的一些类似问题,但问题仍未解决。
[11-Apr-2017 08:33:27] ERROR: unable to read what child say: Bad file descriptor (9)
[11-Apr-2017 09:49:26] ERROR: unable to read what child say: Bad file descriptor (9)
[11-Apr-2017 09:49:26] ERROR: unable to read what child say: Bad file descriptor (9)
[11-Apr-2017 09:56:11] ERROR: unable to read what child say: Bad file descriptor (9)
[11-Apr-2017 09:56:11] ERROR: unable to read what child say: Bad file descriptor (9)
[11-Apr-2017 10:09:56] ERROR: unable to read what child say: Bad file descriptor (9)
[11-Apr-2017 10:09:56] ERROR: unable to read what child say: Bad file descriptor (9)
[11-Apr-2017 10:22:39] ERROR: unable to read what child say: Bad file descriptor (9)
[11-Apr-2017 10:22:39] ERROR: unable to read what child say: Bad file descriptor (9)
[11-Apr-2017 10:35:52] ERROR: unable to read what child say: Bad file descriptor (9)
[11-Apr-2017 10:35:52] ERROR: unable to read what child say: Bad file descriptor (9)
[11-Apr-2017 10:38:52] ERROR: unable to read what child say: Bad file descriptor (9)
[11-Apr-2017 10:46:33] ERROR: unable to read what child say: Bad file descriptor (9)
[11-Apr-2017 10:46:33] ERROR: unable to read what child say: Bad file descriptor (9)
[11-Apr-2017 10:54:21] ERROR: unable to read what child say: Bad file descriptor (9)
[11-Apr-2017 10:54:21] ERROR: unable to read what child say: Bad file descriptor (9)
[11-Apr-2017 10:59:17] ERROR: unable to read what child say: Bad file descriptor (9)
[11-Apr-2017 11:03:16] ERROR: unable to read what child say: Bad file descriptor (9)
[11-Apr-2017 11:03:16] ERROR: unable to read what child say: Bad file descriptor (9)
[11-Apr-2017 11:05:50] ERROR: unable to read what child say: Bad file descriptor (9)
[11-Apr-2017 11:05:50] ERROR: unable to read what child say: Bad file descriptor (9)
[11-Apr-2017 11:05:50] ERROR: unable to read what child say: Bad file descriptor (9)
[11-Apr-2017 11:05:50] ERROR: unable to read what child say: Bad file descriptor (9)
[11-Apr-2017 11:12:03] ERROR: unable to read what child say: Bad file descriptor (9)
[11-Apr-2017 11:32:45] ERROR: unable to read what child say: Bad file descriptor (9)
[11-Apr-2017 11:32:45] ERROR: unable to read what child say: Bad file descriptor (9)
[11-Apr-2017 11:48:28] ERROR: unable to read what child say: Bad file descriptor (9)
[11-Apr-2017 11:48:28] ERROR: unable to read what child say: Bad file descriptor (9)
[11-Apr-2017 11:53:11] ERROR: unable to read what child say: Bad file descriptor (9)
[11-Apr-2017 11:55:15] ERROR: unable to read what child say: Bad file descriptor (9)
[11-Apr-2017 11:55:15] ERROR: unable to read what child say: Bad file descriptor (9)
[11-Apr-2017 12:06:17] ERROR: unable to read what child say: Bad file descriptor (9)
[11-Apr-2017 12:06:17] ERROR: unable to read what child say: Bad file descriptor (9)
我的操作系统是 CentOS7,我正在PHP7-FPM
使用nginx
服务器规格如下
处理器:Intel Xeon E5-1620v2
服务器内存:64GB DDR3
我当前的 fpm 配置如下
pid = /run/plesk-php70-fpm.pid
error_log = /var/log/plesk-php70-fpm/error.log
log_level = error
emergency_restart_threshold = 10
emergency_restart_interval = 1m
process_control_timeout = 10s
listen.backlog = 65535
;[php-fpm-pool-settings]
pm = ondemand
pm.max_children = 2000
pm.process_idle_timeout = 10s
#pm.max_requests = 10000
#pm = dynamic
#pm.max_children = 5000
#pm.start_servers = 50
#pm.min_spare_servers = 20
#pm.max_spare_servers = 70
#pm.max_requests = 10000
我已经尝试过pm ondemand
了pm dynamic