全球主机交流论坛

标题: 大哥们,救急啊,php怎么也启动不了。 [打印本页]

作者: wjhhxl    时间: 2012-4-18 08:13
标题: 大哥们,救急啊,php怎么也启动不了。
今早发现动态页面都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:14
本帖最后由 wjhhxl 于 2012-4-18 08:16 编辑

[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!

作者: 完美    时间: 2012-4-18 08:17
fpm启动失败啊,检查php配置文件。
作者: wjhhxl    时间: 2012-4-18 08:21
[root@centos ~]# /etc/init.d/php-fpm start
-bash: /etc/init.d/php-fpm: 没有那个文件或目录
作者: 完美    时间: 2012-4-18 08:38
你升级没装好吧。
杯具了。
建议重装下lnmp
数据库、host配置文件
移动下位置装完再放回去就可以了。

很方便的。




欢迎光临 全球主机交流论坛 (https://loc.qiche.eu.org/) Powered by Discuz! X3.4