打印

军哥...貌似php经常自动关闭

军哥...貌似php经常自动关闭

老是访问不鸟网站
一不小心就打不开了
下面是从php里面的那个php-fpm.log从拿出来的文件.麻烦帮忙看看
复制内容到剪贴板
代码:
Sep 07 02:26:58.761667 [WARNING] fpm_children_bury(), line 215: child 3825 (pool default) exited on signal 15 SIGTERM after 2853.729713 seconds from start
Sep 07 02:26:58.762717 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Sep 07 02:26:58.762736 [WARNING] fpm_children_bury(), line 215: child 3828 (pool default) exited on signal 15 SIGTERM after 2853.721920 seconds from start
Sep 07 02:26:58.763713 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Sep 07 02:26:58.763731 [WARNING] fpm_children_bury(), line 215: child 3826 (pool default) exited on signal 15 SIGTERM after 2853.730504 seconds from start
Sep 07 02:26:58.763741 [NOTICE] fpm_pctl_exit(), line 81: exiting, bye-bye!
Sep 07 02:26:59.795826 [NOTICE] fpm_unix_init_main(), line 284: getrlimit(nofile): max:1024, cur:1024
Sep 07 02:26:59.796076 [NOTICE] fpm_event_init_main(), line 88: libevent: using epoll
Sep 07 02:26:59.796120 [NOTICE] fpm_init(), line 52: fpm is running, pid 4156
Sep 07 02:26:59.797473 [NOTICE] fpm_children_make(), line 352: child 4157 (pool default) started
Sep 07 02:26:59.798843 [NOTICE] fpm_children_make(), line 352: child 4158 (pool default) started
Sep 07 02:26:59.800123 [NOTICE] fpm_children_make(), line 352: child 4159 (pool default) started
Sep 07 02:26:59.800156 [NOTICE] fpm_event_loop(), line 107: libevent: entering main loop

TOP

回复 1# 的帖子

按日志可能是php打开文件数的限制
打开php-fpm.conf 找到 rlimit_files 改成:65535
编辑 /etc/security/limits.conf 加上:
* soft nofile 65535
* hard nofile 65535
编辑/etc/sysctl.conf  底部添加fs.file-max=65535

echo "ulimit -SHn 65535" >> /etc/rc.local

重启试试

TOP

回复 2# 的帖子

打开php-fpm.conf 找到 rlimit_files 改成:65535   

rlimit_files添加到哪?

TOP

没有就自己加上

TOP