首页 » 互联网资讯 » 正文

lnmpa 执行restart 失败

ubuntu 12.04 安装了lnmpa     按照教程做了mysql数据库目录转移(即、/usr/local/mysql/var TO /home/data/mysql/var),现在系统执行init 6 重启 网站运行正常,但是在ssh 里面执行 /root/lnmpa restart 失败,必须重复执行几次方可全部启动 下面是过程,请军哥看看:

root@b2b114:~# /root/lnmpa status
=========================================================================
Manager for LNMPA V0.9  ,  Written by Licess
=========================================================================
LNMPA is a tool to auto-compile & install Nginx+MySQL+PHP+Apache on Linux
This script is a tool to Manage status of LNMPA
For more information please visit http://www.lnmp.org

Usage: /root/lnmpa {start|stop|reload|restart|kill|status}
=========================================================================
Nginx is runing!
Apache Server Status for localhost

Server Version: Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.1
PHP/5.3.18

Server Built: Oct 26 2012 08:18:29
__________________________________________________________________

Current Time: Saturday, 27-Oct-2012 14:36:17 CST
Restart Time: Saturday, 27-Oct-2012 08:54:57 CST
Parent Server Generation: 0
Server uptime: 5 hours 41 minutes 19 seconds
1 requests currently being processed, 9 idle workers

W._.._.______.._…………………………………………
……………………………………………………….
……………………………………………………….
……………………………………………………….

Scoreboard Key:
“_” Waiting for Connection, “S” Starting up, “R” Reading Request,
“W” Sending Reply, “K” Keepalive (read), “D” DNS Lookup,
“C” Closing connection, “L” Logging, “G” Gracefully finishing,
“I” Idle cleanup of worker, “.” Open slot with no current process
* MySQL running (1354)
root@b2b114:~# /root/lnmpa restart
=========================================================================
Manager for LNMPA V0.9  ,  Written by Licess
=========================================================================
LNMPA is a tool to auto-compile & install Nginx+MySQL+PHP+Apache on Linux
This script is a tool to Manage status of LNMPA
For more information please visit http://www.lnmp.org

Usage: /root/lnmpa {start|stop|reload|restart|kill|status}
=========================================================================
Stoping LNMP…
Nginx program is stop
MySQL program is not runing!
Starting LNMPA…
Nginx start successfully!
(98)Address already in use: make_sock: could not bind to address 127.0.0.1:88
no listening sockets available, shutting down
Unable to open logs
Starting MySQL
*
MySQL start successfully!

root@b2b114:~# /root/lnmpa restart
=========================================================================
Manager for LNMPA V0.9  ,  Written by Licess
=========================================================================
LNMPA is a tool to auto-compile & install Nginx+MySQL+PHP+Apache on Linux
This script is a tool to Manage status of LNMPA
For more information please visit http://www.lnmp.org

Usage: /root/lnmpa {start|stop|reload|restart|kill|status}
=========================================================================
Stoping LNMP…
Nginx program is stop
httpd (no pid file) not running
MySQL program is not runing!
Starting LNMPA…
Nginx is runing!
root@b2b114:~# /root/lnmpa restart
=========================================================================
Manager for LNMPA V0.9  ,  Written by Licess
=========================================================================
LNMPA is a tool to auto-compile & install Nginx+MySQL+PHP+Apache on Linux
This script is a tool to Manage status of LNMPA
For more information please visit http://www.lnmp.org

Usage: /root/lnmpa {start|stop|reload|restart|kill|status}
=========================================================================
Stoping LNMP…
Nginx program is not runing!
httpd (no pid file) not running
MySQL program is not runing!
Starting LNMPA…
Nginx start successfully!
Starting MySQL
*
MySQL start successfully!


前面没错误信息

更换到其他目录按官网教程弄就行了,只弄数据库目录就行了,动其他目录权限干什么?

nginx

发表评论