long332 发表于 2015-12-23 16:20:12

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

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


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

licess 发表于 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: 1005Can't create table 'tmp_db' (errno: 13)
151223 15:56:07 Aborting

151223 15:56:07 /usr/local/mysql/bin/mysqld: Shutdown complete
安装数据表时报错,应该是数据库目录权限有问题,你可以安装前设置好权限,或直接用新版lnmp1.3
你这个应该是很早之前的lnmp版本了

long332 发表于 2015-12-23 17:37:54

回复 2# 的帖子

谢谢军哥,那我直接换为lnmp1.3。还有一个,我lnmp之后能否再编译安装php的yaf扩展呢?

licess 发表于 2015-12-23 18:30:14

回复 3# 的帖子

1.3上安装yaf更方便,安装完lnmp直接 pecl install yaf 就行

long332 发表于 2015-12-23 20:54:17

回复 4# 的帖子

恩恩好的,谢谢军哥!

long332 发表于 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: *** Error 1
ERROR: `make' failed

licess 发表于 2015-12-24 10:24:16

回复 6# 的帖子

php是哪个版本?
换个版本或者自己编译一下看看

long332 发表于 2015-12-24 10:32:23

回复 7# 的帖子

php-5.6.15
是直接安装的lnmp1.3的

long332 发表于 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: *** Error 1
ERROR: `make' failed

long332 发表于 2015-12-24 12:30:07

回复 7# 的帖子

军哥,我单独编译安装了一下yaf,成功了,解决了,谢谢军哥

licess 发表于 2015-12-24 12:31:05

回复 9# 的帖子

不大清楚原因建议上 https://github.com/laruence/yaf 反馈一下
页: [1]
查看完整版本: LNMP一键安装安装都OK了,启动mysql报错,该如何解决?