VPS侦探论坛

 找回密码
 注册
查看: 5470|回复: 4

lnmpa 执行restart 失败

[复制链接]
发表于 2012-10-27 14:48:15 | 显示全部楼层 |阅读模式

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!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2012-10-27 15:11:21 | 显示全部楼层


谁知道怎么回事呀?
另外:按照教程做了mysql数据库目录转移(即、/usr/local/mysql/var TO /home/data/mysql/var)
除了chown mysql:mysql -R /home/data/mysql/var 权限操作。
其他像 /home/data,/home/data/mysql/ 这里怎么给权限,目前这个两个权限是755




求解?

[ 本帖最后由 dc10221203 于 2012-10-27 15:14 编辑 ]
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2012-10-27 16:22:43 | 显示全部楼层

前面没错误信息

更换到其他目录按官网教程弄就行了,只弄数据库目录就行了,动其他目录权限干什么?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2012-10-27 19:50:10 | 显示全部楼层



(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
这个是啥问题呢?
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2012-10-28 08:03:40 | 显示全部楼层

回复 4# 的帖子


可能有其他程序占用了88端口或apache已经启动

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

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-17 11:45 , Processed in 0.027191 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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