VPS侦探论坛

 找回密码
 注册
查看: 6062|回复: 10

LNMP一键安装安装都OK了,启动mysql报错,该如何解决?

[复制链接]
发表于 2015-12-23 16:20:12 | 显示全部楼层 |阅读模式

ERROR! MySQL is not running, but lock file (/var/lock/subsys/mysql) exists


试了网上的一些办法,删除/var/lock/subsys/mysql之类的,解决不了,该怎么办呢?

本帖子中包含更多资源

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

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


WARNING: The host 'ZHONGBEI_LAMP' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
Installing MySQL system tables...
ERROR: 1005  Can't create table 'tmp_db' (errno: 13)
151223 15:56:07 [ERROR] Aborting

151223 15:56:07 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete

安装数据表时报错,应该是数据库目录权限有问题,你可以安装前设置好权限,或直接用新版lnmp1.3
你这个应该是很早之前的lnmp版本了
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2015-12-23 17:37:54 | 显示全部楼层

回复 2# 的帖子


谢谢军哥,那我直接换为lnmp1.3。还有一个,我lnmp之后能否再编译安装php的yaf扩展呢?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2015-12-23 18:30:14 | 显示全部楼层

回复 3# 的帖子




1.3上安装yaf更方便,安装完lnmp直接 pecl install yaf 就行
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2015-12-23 20:54:17 | 显示全部楼层

回复 4# 的帖子


恩恩好的,谢谢军哥!

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

 楼主| 发表于 2015-12-24 09:55:57 | 显示全部楼层

回复 4# 的帖子


军哥,我安装完lnmp直接执行pecl install yaf ,报错编译失败,该怎么解决?

/tmp/pear/temp/pear-build-rootrwX3cW/yaf-2.3.5/libtool: line 1283: configs/yaf_config_ini.loT: No such file or directory
mkdir configs/.libs
mkdir: cannot create directory `configs/.libs': No such file or directory
make: *** [configs/yaf_config_ini.lo] Error 1
ERROR: `make' failed
发表于 2015-12-24 10:24:16 | 显示全部楼层

回复 6# 的帖子


php是哪个版本?
换个版本或者自己编译一下看看
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2015-12-24 10:32:23 | 显示全部楼层

回复 7# 的帖子


php-5.6.15
是直接安装的lnmp1.3的
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2015-12-24 10:52:12 | 显示全部楼层

回复 7# 的帖子


军哥我直接升级到php7,再运行pecl install yaf ,还是报错,这个怎么解决呢?

/tmp/pear/temp/yaf/yaf.c: In function ‘OnUpdateSeparator’:
/tmp/pear/temp/yaf/yaf.c:59: warning: assignment from incompatible pointer type
/tmp/pear/temp/yaf/yaf.c:60: error: ‘new_value_length’ undeclared (first use in this function)
/tmp/pear/temp/yaf/yaf.c:60: error: (Each undeclared identifier is reported only once
/tmp/pear/temp/yaf/yaf.c:60: error: for each function it appears in.)
/tmp/pear/temp/yaf/yaf.c: In function ‘zm_deactivate_yaf’:
/tmp/pear/temp/yaf/yaf.c:230: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/local/php/include/php/Zend/zend_variables.h:112: note: expected ‘struct zval *’ but argument is of type ‘struct zval **’
make: *** [yaf.lo] Error 1
ERROR: `make' failed
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2015-12-24 12:30:07 | 显示全部楼层

回复 7# 的帖子




军哥,我单独编译安装了一下yaf,成功了,解决了,谢谢军哥
发表于 2015-12-24 12:31:05 | 显示全部楼层

回复 9# 的帖子


不大清楚原因建议上 https://github.com/laruence/yaf 反馈一下
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-28 17:33 , Processed in 0.040823 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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