军哥请救急,昨晚PHP挂了,今天怎么也重启不了。
今早发现动态页面都502了,静态正常。重启LNMP ,发现php-cgi不存在,怎么也重启不了,
包括重启系统也无法开启php-cgi
LNMP是0.5的版本,上个月升级了那个补丁,php版本是5.2.17p1
我当时升完级后,重启系统是可以启动的。
为什么昨晚挂了后,就再也重启不了啦,
系统是centos 32位
我把一些命令结果给你看
#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/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_fpmdone
[ 本帖最后由 wjhhxl 于 2012-4-18 08:11 编辑 ] # /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/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_fpmdone
Starting MySQL SUCCESS!
[ 本帖最后由 wjhhxl 于 2012-4-18 08:20 编辑 ] # /etc/init.d/php-fpm start
-bash: /etc/init.d/php-fpm: 没有那个文件或目录 ls /usr/local/php/sbin/
看看有php-fpm不 有的,我刚才又打了一次那个补丁,又重启系统了,还是不能开启PHP进程。
急~~ php-fpm.log 居然 有二G那么大, 终于明白了。是LOG文件太大,删除就好了。
军哥,这种情况你也是第一次见到吧, 请问军哥,如何禁止LOG生成啊。
php-fpm.log 就是这个文件。
页:
[1]