VPS侦探论坛

 找回密码
 注册
查看: 5848|回复: 5

lnmp0.7-full 挂了,求救!!

[复制链接]
发表于 2012-8-20 17:35:55 | 显示全部楼层 |阅读模式

我安装在CentOS 5 - 32 bit 系统上安装的LNMP 0.7, 运行了一年,没有问题。
今天突然发现网站无法访问,重启了仍然不行。
1. 运行/root/lnmp restart, 错误提示如下:

Usage: /root/lnmp {start|stop|reload|restart|kill|status}
=========================================================================
Stoping LNMP...
/root/lnmp: line 62: kill: (9527) - No such process
Nginx program is stop
PHP-FPM program is not runing!
MySQL program is not runing!
Starting LNMP...
Nginx is runing!

2. 运行/usr/local/nginx/sbin/nginx -s reload 命令, 错误提示如下:
[alert]: kill(9527, 1) failed (3: No such process)


如果重新装系统,网站代码倒是可以备份,数据库不知道怎么备份了。
请懂的朋友帮帮忙, 急!!!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-8-20 17:46:19 | 显示全部楼层


1、没错误

2、nginx没运行,/etc/init.d/nginx start  启动

关于数据库备份www.vpser.net上有,可以自己搜索https://www.vpser.net/manage/mysql-import-export.html
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2012-8-20 17:56:27 | 显示全部楼层

看了军哥的提示,补充点错误信息。


看了军哥的提示,补充点错误信息。
1. 运行/usr/local/nginx/sbin/nginx -t的返回信息
[root@rsbob home]# /usr/local/nginx/sbin/nginx -t
Enter PEM pass phrase:
the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
configuration file /usr/local/nginx/conf/nginx.conf test is successful

2. 执行php -v
[root@rsbob home]# php -v
PHP 5.2.17 (cli) (built: Sep  6 2011 12:19:09)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
    with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies

3. /usr/local/mysql/var/主机名.err 的日志
[root@rsbob var]# vi rsbob.err
110906 12:12:36 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
110906 12:12:36 [Note] Event Scheduler: Loaded 0 events
110906 12:12:36 [Note] /usr/local/mysql/libexec/mysqld: ready for connections.
Version: '5.1.54-log'  socket: '/tmp/mysql.sock'  port: 3306  Source distribution
110906 12:12:37 [Note] /usr/local/mysql/libexec/mysqld: Normal shutdown

110906 12:12:37 [Note] Event Scheduler: Purging the queue. 0 events
110906 12:12:37 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

110906 12:12:37 mysqld_safe mysqld from pid file /usr/local/mysql/var/rsbob.pid ended
110906 12:12:38 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
110906 12:12:38 [Note] Event Scheduler: Loaded 0 events
110906 12:12:38 [Note] /usr/local/mysql/libexec/mysqld: ready for connections.
Version: '5.1.54-log'  socket: '/tmp/mysql.sock'  port: 3306  Source distribution
110906 12:12:39 [Note] /usr/local/mysql/libexec/mysqld: Normal shutdown

110906 12:12:39 [Note] Event Scheduler: Purging the queue. 0 events
110906 12:12:39 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete
"rsbob.err" 605L, 37029C
110906 12:12:36 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
110906 12:12:36 [Note] Event Scheduler: Loaded 0 events
110906 12:12:36 [Note] /usr/local/mysql/libexec/mysqld: ready for connections.
Version: '5.1.54-log'  socket: '/tmp/mysql.sock'  port: 3306  Source distribution
110906 12:12:37 [Note] /usr/local/mysql/libexec/mysqld: Normal shutdown

110906 12:12:37 [Note] Event Scheduler: Purging the queue. 0 events
110906 12:12:37 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

110906 12:12:37 mysqld_safe mysqld from pid file /usr/local/mysql/var/rsbob.pid ended
110906 12:12:38 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
110906 12:12:38 [Note] Event Scheduler: Loaded 0 events
110906 12:12:38 [Note] /usr/local/mysql/libexec/mysqld: ready for connections.
Version: '5.1.54-log'  socket: '/tmp/mysql.sock'  port: 3306  Source distribution
110906 12:12:39 [Note] /usr/local/mysql/libexec/mysqld: Normal shutdown

110906 12:12:39 [Note] Event Scheduler: Purging the queue. 0 events
110906 12:12:39 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

110906 12:12:39 mysqld_safe mysqld from pid file /usr/local/mysql/var/rsbob.pid ended
110906 12:20:45 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
110906 12:20:45 [Note] Event Scheduler: Loaded 0 events
110906 12:20:45 [Note] /usr/local/mysql/libexec/mysqld: ready for connections.
Version: '5.1.54-log'  socket: '/tmp/mysql.sock'  port: 3306  Source distribution
110906 12:20:59 mysqld_safe A mysqld process already exists
110906 20:39:22 [Note] /usr/local/mysql/libexec/mysqld: Normal shutdown

110906 20:39:22 [Note] Event Scheduler: Purging the queue. 0 events
110906 20:39:22 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

110906 20:39:22 mysqld_safe mysqld from pid file /usr/local/mysql/var/rsbob.pid ended
110906 20:39:23 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
110906 20:39:23 [Note] Event Scheduler: Loaded 0 events
110906 20:39:23 [Note] /usr/local/mysql/libexec/mysqld: ready for connections.
Version: '5.1.54-log'  socket: '/tmp/mysql.sock'  port: 3306  Source distribution
110907  1:35:00 [Note] /usr/local/mysql/libexec/mysqld: Normal shutdown

110907  1:35:00 [Note] Event Scheduler: Purging the queue. 0 events
110907  1:35:00 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2012-8-20 18:00:23 | 显示全部楼层



非常感谢军哥, 运行了你给的那段程序可以了。
顺便问下, “2、上传lnmp.log日志文件,或提供编译安装的错误信息。”

lnmp.log日志文件 在那个地方,找了半天没有找到。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2012-8-20 18:46:56 | 显示全部楼层

你都运行1年了,和安装日志没关系

Enter PEM pass phrase:
应该是你配置过ssl吧,这个不算错误
在key的目录执行:openssl rsa -in server.key -out server.key.unsecure  配置文件里缓存unsecure这个文件名就行了

php -v 没错误

mysql日志没错误

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

 楼主| 发表于 2012-8-20 23:16:36 | 显示全部楼层

非常感谢! 问题解决啦
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-23 17:23 , Processed in 0.026211 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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