VPS侦探论坛

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

[求助]安装完LNMP后MySQL出错

[复制链接]
发表于 2011-4-9 09:40:58 | 显示全部楼层 |阅读模式

安装完LNMP后MySQL出错,重启LNMP显示:
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!
MySQL manager or server PID file could not be found! ... failed!
Starting MySQL
.Manager of pid-file quit without updating file. ... failed!
Shutting down php_fpm  done
Starting php_fpm  done


用find / -iname *.err查找,只查到这个文件是.err的
/root/lnmp0.6-full/nginx-0.7.67/objs/autoconf.err

/usr/local/mysql# ls 显示的文件目录只有这些:
bin  docs  include  lib  libexec  mysql-test  share  sql-bench

在debian下安装了两遍LNMP还是同样的错误,本人小白一个,不知道靠这些信息各位大侠能不能提供解决方案?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-4-9 10:53:03 | 显示全部楼层


发/usr/local/mysql/var/主机名.err 日志
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-4-9 12:04:33 | 显示全部楼层

原帖由 licess 于 2011-4-9 10:53 发表
发/usr/local/mysql/var/主机名.err 日志


我不是说了吗,/usr/local/mysql/下没有var文件夹,更没有什么以err为后缀的日志文件。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-4-9 12:34:30 | 显示全部楼层

回复 1# 的帖子




看日志像是resolveip的问题,执行下面再安装试试
cp /usr/local/mysql/bin/resolveip /usr/bin/resolveip
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-4-9 18:09:24 | 显示全部楼层

原帖由 licess 于 2011-4-9 12:34 发表
看日志像是resolveip的问题,执行下面再安装试试
cp /usr/local/mysql/bin/resolveip /usr/bin/resolveip


试了,还是一样出错,不过我手动新建文件夹/usr/local/mysql/var,并且在my.cnf中添加
datadir=/usr/local/mysql/var,重启LNMP后有/usr/local/mysql/var/主机名.err的日志文件,内容如下:


110409 16:34:20 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
^G/usr/local/mysql/libexec/mysqld: File './mysql-bin.index' not found (Errcode: 13)
110409 16:34:21 [ERROR] Aborting

110409 16:34:21 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

110409 16:34:21 mysqld_safe mysqld from pid file /usr/local/mysql/var/BTplugTiny.pid ended
110409 16:38:57 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
^G/usr/local/mysql/libexec/mysqld: File './mysql-bin.index' not found (Errcode: 13)
110409 16:38:57 [ERROR] Aborting

110409 16:38:57 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

110409 16:38:57 mysqld_safe mysqld from pid file /usr/local/mysql/var/BTplugTiny.pid ended


网上查了一下,说是权限问题,于是我运行了一下,但还是不行。
chgrp -R mysql ./var && chown -R mysql ./var

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

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

本版积分规则

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

GMT+8, 2024-12-24 02:46 , Processed in 0.027640 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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