VPS侦探论坛

 找回密码
 注册
查看: 34667|回复: 3

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

[复制链接]
发表于 2010-9-7 02:38:58 | 显示全部楼层 |阅读模式

老是访问不鸟网站
一不小心就打不开了
下面是从php里面的那个php-fpm.log从拿出来的文件.麻烦帮忙看看

  1. 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
  2. Sep 07 02:26:58.762717 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
  3. 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
  4. Sep 07 02:26:58.763713 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
  5. 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
  6. Sep 07 02:26:58.763741 [NOTICE] fpm_pctl_exit(), line 81: exiting, bye-bye!
  7. Sep 07 02:26:59.795826 [NOTICE] fpm_unix_init_main(), line 284: getrlimit(nofile): max:1024, cur:1024
  8. Sep 07 02:26:59.796076 [NOTICE] fpm_event_init_main(), line 88: libevent: using epoll
  9. Sep 07 02:26:59.796120 [NOTICE] fpm_init(), line 52: fpm is running, pid 4156
  10. Sep 07 02:26:59.797473 [NOTICE] fpm_children_make(), line 352: child 4157 (pool default) started
  11. Sep 07 02:26:59.798843 [NOTICE] fpm_children_make(), line 352: child 4158 (pool default) started
  12. Sep 07 02:26:59.800123 [NOTICE] fpm_children_make(), line 352: child 4159 (pool default) started
  13. Sep 07 02:26:59.800156 [NOTICE] fpm_event_loop(), line 107: libevent: entering main loop
复制代码
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 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

重启试试
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2014-9-7 16:50:30 | 显示全部楼层

回复 2# 的帖子


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

rlimit_files添加到哪?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2014-9-9 08:41:23 | 显示全部楼层



没有就自己加上
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-4-24 07:31 , Processed in 0.026804 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表