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
到此结束.