VPS侦探论坛

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

军哥求助。

[复制链接]
发表于 2016-12-9 10:59:40 | 显示全部楼层 |阅读模式

军哥您好,我的php-fpm经常挂掉。您能帮我看下吗?我也已经按照这个帖子改了https://bbs.vpser.net/thread-1144-1-1.html
看下面的日志,我什么都没执行,突然就挂了。。

[09-Dec-2016 10:35:33] NOTICE: reloading: execvp("/usr/local/php/sbin/php-fpm", {"/usr/local/php/sbin/php-fpm", "--daemonize", "--fpm-config", "/usr/local/php/etc/php-fpm.conf", "--pid", "/usr/local/php/var/run/php-fpm.pid"})
[09-Dec-2016 10:35:33] NOTICE: using inherited socket fd=11, "/tmp/php-cgi.sock"
[09-Dec-2016 10:35:33] NOTICE: using inherited socket fd=11, "/tmp/php-cgi.sock"
[09-Dec-2016 10:35:33] NOTICE: fpm is running, pid 2689
[09-Dec-2016 10:35:33] NOTICE: ready to handle connections
[09-Dec-2016 10:36:02] NOTICE: Reloading in progress ...
[09-Dec-2016 10:36:02] NOTICE: reloading: execvp("/usr/local/php/sbin/php-fpm", {"/usr/local/php/sbin/php-fpm", "--daemonize", "--fpm-config", "/usr/local/php/etc/php-fpm.conf", "--pid", "/usr/local/php/var/run/php-fpm.pid"})
[09-Dec-2016 10:36:02] NOTICE: using inherited socket fd=11, "/tmp/php-cgi.sock"
[09-Dec-2016 10:36:02] NOTICE: using inherited socket fd=11, "/tmp/php-cgi.sock"
[09-Dec-2016 10:36:02] NOTICE: fpm is running, pid 2709
[09-Dec-2016 10:36:02] NOTICE: ready to handle connections
[09-Dec-2016 10:39:32] NOTICE: Reloading in progress ...
[09-Dec-2016 10:39:32] NOTICE: reloading: execvp("/usr/local/php/sbin/php-fpm", {"/usr/local/php/sbin/php-fpm", "--daemonize", "--fpm-config", "/usr/local/php/etc/php-fpm.conf", "--pid", "/usr/local/php/var/run/php-fpm.pid"})
[09-Dec-2016 10:39:32] NOTICE: using inherited socket fd=11, "/tmp/php-cgi.sock"
[09-Dec-2016 10:39:32] NOTICE: using inherited socket fd=11, "/tmp/php-cgi.sock"
[09-Dec-2016 10:39:32] NOTICE: fpm is running, pid 2742
[09-Dec-2016 10:39:32] NOTICE: ready to handle connections
[09-Dec-2016 10:40:17] NOTICE: Reloading in progress ...
[09-Dec-2016 10:40:17] NOTICE: reloading: execvp("/usr/local/php/sbin/php-fpm", {"/usr/local/php/sbin/php-fpm", "--daemonize", "--fpm-config", "/usr/local/php/etc/php-fpm.conf", "--pid", "/usr/local/php/var/run/php-fpm.pid"})
[09-Dec-2016 10:40:17] NOTICE: using inherited socket fd=11, "/tmp/php-cgi.sock"
[09-Dec-2016 10:40:17] NOTICE: using inherited socket fd=11, "/tmp/php-cgi.sock"
[09-Dec-2016 10:40:17] NOTICE: fpm is running, pid 2761
[09-Dec-2016 10:40:17] NOTICE: ready to handle connections
[09-Dec-2016 10:49:42] WARNING: [pool www] child 2762 exited on signal 11 (SIGSEGV) after 565.808542 seconds from start
[09-Dec-2016 10:49:42] NOTICE: [pool www] child 2838 started
[09-Dec-2016 10:49:45] WARNING: [pool www] child 2763 exited on signal 11 (SIGSEGV) after 568.434760 seconds from start
[09-Dec-2016 10:49:45] NOTICE: [pool www] child 2839 started
[09-Dec-2016 10:49:47] WARNING: [pool www] child 2838 exited on signal 11 (SIGSEGV) after 4.828715 seconds from start
[09-Dec-2016 10:49:47] NOTICE: [pool www] child 2841 started
[09-Dec-2016 10:49:51] WARNING: [pool www] child 2839 exited on signal 11 (SIGSEGV) after 6.032603 seconds from start
[09-Dec-2016 10:49:51] NOTICE: [pool www] child 2842 started
[09-Dec-2016 10:49:54] WARNING: [pool www] child 2841 exited on signal 11 (SIGSEGV) after 6.354804 seconds from start
[09-Dec-2016 10:49:54] NOTICE: [pool www] child 2843 started
[09-Dec-2016 10:50:03] WARNING: [pool www] child 2842 exited on signal 11 (SIGSEGV) after 12.368027 seconds from start
[09-Dec-2016 10:50:03] NOTICE: [pool www] child 2845 started
[09-Dec-2016 10:50:08] WARNING: [pool www] child 2843 exited on signal 11 (SIGSEGV) after 13.977977 seconds from start
[09-Dec-2016 10:50:08] NOTICE: [pool www] child 2846 started
[09-Dec-2016 10:50:12] WARNING: [pool www] child 2845 exited on signal 11 (SIGSEGV) after 8.095011 seconds from start
[09-Dec-2016 10:50:12] NOTICE: [pool www] child 2848 started
[09-Dec-2016 10:50:14] WARNING: [pool www] child 2846 exited on signal 11 (SIGSEGV) after 6.018847 seconds from start
[09-Dec-2016 10:50:14] NOTICE: [pool www] child 2849 started
[09-Dec-2016 10:50:17] WARNING: [pool www] child 2848 exited on signal 11 (SIGSEGV) after 5.602735 seconds from start
[09-Dec-2016 10:50:17] NOTICE: [pool www] child 2850 started
[09-Dec-2016 10:50:18] WARNING: [pool www] child 2849 exited on signal 11 (SIGSEGV) after 3.979909 seconds from start
[09-Dec-2016 10:50:18] NOTICE: [pool www] child 2851 started
[09-Dec-2016 10:50:28] WARNING: [pool www] child 2850 exited on signal 11 (SIGSEGV) after 10.572823 seconds from start
[09-Dec-2016 10:50:28] NOTICE: [pool www] child 2855 started
[09-Dec-2016 10:50:43] NOTICE: Reloading in progress ...
[09-Dec-2016 10:50:43] NOTICE: reloading: execvp("/usr/local/php/sbin/php-fpm", {"/usr/local/php/sbin/php-fpm", "--daemonize", "--fpm-config", "/usr/local/php/etc/php-fpm.conf", "--pid", "/usr/local/php/var/run/php-fpm.pid"})
[09-Dec-2016 10:50:43] NOTICE: using inherited socket fd=11, "/tmp/php-cgi.sock"
[09-Dec-2016 10:50:43] NOTICE: using inherited socket fd=11, "/tmp/php-cgi.sock"
[09-Dec-2016 10:50:43] NOTICE: fpm is running, pid 2861
[09-Dec-2016 10:50:43] NOTICE: ready to handle connections




我开启了慢日志
session_start()报错是什么原因呢?

[09-Dec-2016 09:56:31]  [pool www] pid 2052
script_filename = /home/wwwroot/mumaren.yichangrencai.cn/index.php
[0x000000000208c298] session_start() /home/wwwroot/mumaren.yichangrencai.cn/app/core/MY_Controller.php:34
[0x000000000208c1a8] __construct() /home/wwwroot/mumaren.yichangrencai.cn/app/controllers/goods.php:5
[0x0000000002089978] __construct() /home/wwwroot/mumaren.yichangrencai.cn/system/core/CodeIgniter.php:308
[0x0000000002089010] +++ dump failed
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-12-9 12:45:19 | 显示全部楼层


慢日志定位到具体文件,其他就需要自己排查了

要对应502的时间和慢日志的时间
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2016-12-9 13:49:37 | 显示全部楼层

session_start()  打开很慢。这个怎样解决啊、我在网上搜解决办法

修改 php.ini 里 session的存放路径,改了网站的session就用不了了 。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2016-12-9 13:57:30 | 显示全部楼层



找到原因了。。。感谢军哥
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-3-19 17:43 , Processed in 0.027016 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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