启动php-fpm问题,查看日志文件,此日志文件是在php-fpm.conf中所定义的
1、提示
Aug 06 16:18:48.813346 [WARNING] fpm_children_bury(), line 215: child 23124 (pool default) exited on signal 9 SIGKILL after 19293.913994 seconds from start
Aug 06 16:18:48.816439 [NOTICE] fpm_children_make(), line 352: child 42344 (pool default) started
解决:
修改php-fpm.conf的配置,将max_requests和max_children调整为合适的值。
<value name="max_requests">102400</value>
<value name="max_children">100</value>
2、Dec 01 11:01:07.339056 [WARNING] fpm_stdio_child_said(), line 158: child 25237 (pool default) said into stderr: "Dec 01 11:01:07.336368 [ERROR] fpm_unix_init_child(), line 168: setrlimit(RLIMIT_NOFILE) failed: Invalid argument (22)"
A:修改配置文件:
vi /etc/sysctl.conf
输入以下内容:
kernel.shmmax = 134217728
然后执行以下命令使配置生效:
sbin/sysctl –p
(责任编辑:ken)