php 報警 [NOTICE] fpm_children_bury()

php日誌報警php


Apr 20 10:45:50.008073 [NOTICE] fpm_children_bury(), line 215: child 7113 (pool default) exited with code 0 after 955.596829 seconds from startnginx

Apr 20 10:45:50.008472 [NOTICE] fpm_children_make(), line 352: child 10331 (pool default) started服務器


解決方法ide

一、提高服務器的文件句柄打開打開php-fpm

/etc/security/limits.conf : (增長)spa

*    soft    nofile    51200日誌

*    hard    nofile    51200code

# vi /etc/security/limits.conf 加上
* soft nofile 51200
* hard nofile 51200orm

二、提高nginx的進程文件打開數進程

nginx.conf : worker_rlimit_nofile 51200;

三、修改php-fpm.conf文件,主要須要修改2處

命令 ulimit -n 查看限制的打開文件數,php-fpm.conf 中的選項rlimit_files 確保和此數值一致。

 <value name="max_requests">10240</value>

<value name="rlimit_files">51200</value>

四、修改系統內核

# vi /etc/sysctl.conf
底部添加
fs.file-max=51200

到此結束.