winder 发表于 2010-9-7 02:38:58

军哥...貌似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

licess 发表于 2010-9-8 12:33:23

回复 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

重启试试

dmyz3214382 发表于 2014-9-7 16:50:30

回复 2# 的帖子

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

rlimit_files添加到哪?

licess 发表于 2014-9-9 08:41:23

没有就自己加上
页: [1]
查看完整版本: 军哥...貌似php经常自动关闭