VPS侦探论坛

 找回密码
 注册
查看: 7302|回复: 7

军哥请救急,昨晚PHP挂了,今天怎么也重启不了。

[复制链接]
发表于 2012-4-18 08:10:20 | 显示全部楼层 |阅读模式

今早发现动态页面都502了,静态正常。
重启LNMP ,发现php-cgi不存在,怎么也重启不了,
包括重启系统也无法开启php-cgi
LNMP是0.5的版本,上个月升级了那个补丁,php版本是5.2.17p1
我当时升完级后,重启系统是可以启动的。

为什么昨晚挂了后,就再也重启不了啦,
系统是centos 32位

我把一些命令结果给你看


[root@centos ~]#  ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 4096
max locked memory       (kbytes, -l) 32
max memory size         (kbytes, -m) unlimited
open files                      (-n) 65535
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 10240
cpu time               (seconds, -t) unlimited
max user processes              (-u) 4096
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited


[root@centos ~]# /root/lnmp restart
=========================================================================
Manager for LNMP V0.5  ,  Written by Licess
=========================================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to Manage status of lnmp
For more information please visit http://www.lnmp.org
Usage: /root/lnmp {start|stop|reload|restart|kill|status}
=========================================================================
Reload LNMP...
Reload Nginx configure...
the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
configuration file /usr/local/nginx/conf/nginx.conf test is successful
Nginx program is reloding!
Shutting down MySQL SUCCESS!
Starting MySQL. SUCCESS!
Shutting down php_fpm /usr/local/php/sbin/php-fpm: line 69: kill: (18535) - 没有那个进程
................................... failed
Starting php_fpm  done

[ 本帖最后由 wjhhxl 于 2012-4-18 08:11 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2012-4-18 08:15:03 | 显示全部楼层


[root@centos ~]# /root/lnmp kill
=========================================================================
Manager for LNMP V0.5  ,  Written by Licess
=========================================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to Manage status of lnmp
For more information please visit http://www.lnmp.org
Usage: /root/lnmp {start|stop|reload|restart|kill|status}
=========================================================================
mysql: no process killed
php-cgi: no process killed


[root@centos ~]# /root/lnmp start
=========================================================================
Manager for LNMP V0.5  ,  Written by Licess
=========================================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to Manage status of lnmp
For more information please visit http://www.lnmp.org
Usage: /root/lnmp {start|stop|reload|restart|kill|status}
=========================================================================
Starting LNMP...
Nginx is successful start!
Starting php_fpm  done
Starting MySQL SUCCESS!

[ 本帖最后由 wjhhxl 于 2012-4-18 08:20 编辑 ]
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2012-4-18 08:26:23 | 显示全部楼层

[root@centos ~]# /etc/init.d/php-fpm start
-bash: /etc/init.d/php-fpm: 没有那个文件或目录
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-4-18 09:44:08 | 显示全部楼层



ls /usr/local/php/sbin/
看看有php-fpm不
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2012-4-18 09:53:25 | 显示全部楼层

有的,我刚才又打了一次那个补丁,又重启系统了,还是不能开启PHP进程。
急~~

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2012-4-18 10:07:49 | 显示全部楼层

php-fpm.log 居然 有二G那么大,
 楼主| 发表于 2012-4-18 10:10:01 | 显示全部楼层

终于明白了。是LOG文件太大,删除就好了。
军哥,这种情况你也是第一次见到吧,
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2012-4-18 10:59:22 | 显示全部楼层

请问军哥,如何禁止LOG生成啊。
php-fpm.log 就是这个文件。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-22 19:43 , Processed in 0.027047 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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