军哥...貌似php经常自动关闭
老是访问不鸟网站一不小心就打不开了
下面是从php里面的那个php-fpm.log从拿出来的文件.麻烦帮忙看看
Sep 07 02:26:58.761667 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 fpm_got_signal(), line 48: received SIGCHLD
Sep 07 02:26:58.762736 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 fpm_got_signal(), line 48: received SIGCHLD
Sep 07 02:26:58.763731 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 fpm_pctl_exit(), line 81: exiting, bye-bye!
Sep 07 02:26:59.795826 fpm_unix_init_main(), line 284: getrlimit(nofile): max:1024, cur:1024
Sep 07 02:26:59.796076 fpm_event_init_main(), line 88: libevent: using epoll
Sep 07 02:26:59.796120 fpm_init(), line 52: fpm is running, pid 4156
Sep 07 02:26:59.797473 fpm_children_make(), line 352: child 4157 (pool default) started
Sep 07 02:26:59.798843 fpm_children_make(), line 352: child 4158 (pool default) started
Sep 07 02:26:59.800123 fpm_children_make(), line 352: child 4159 (pool default) started
Sep 07 02:26:59.800156 fpm_event_loop(), line 107: libevent: entering main loop
回复 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
重启试试
回复 2# 的帖子
打开php-fpm.conf 找到 rlimit_files 改成:65535rlimit_files添加到哪? 没有就自己加上
页:
[1]