try88 发表于 2011-6-22 00:03:29

CentOS 32 VPS安装LNMP V0.7失败,无法启动mysql和php

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

Usage: /root/lnmp {start|stop|reload|restart|kill|status}
=========================================================================
Stoping LNMP...
Nginx program is not runing!
PHP-FPM program is not runing!
MySQL program is not runing!
Starting LNMP...
Nginx start successfully!
/root/lnmp: line 46: /usr/local/php/sbin/php-fpm: No such file or directory
PHP-FPM start successfully!
/root/lnmp: line 53: /etc/init.d/mysql: No such file or directory


请指教, 谢谢!

[ 本帖最后由 try88 于 2011-6-23 01:13 编辑 ]

try88 发表于 2011-6-22 00:04:58

MYSQL不知道安装到那里了??

# cd /usr/local/
# dir
autoconf-2.13etc    includelib64    man    php   sharezend
bin            gameslib      libexecnginxsbinsrc

try88 发表于 2011-6-22 00:21:46

启动php-fpm信息

# /etc/init.d/php-fpm restart
Shutting down php_fpm warning, no pid file found - php-fpm is not running ?
Starting php_fpm /etc/init.d/php-fpm: line 61: /usr/local/php/bin/php-cgi: No such file or directory
failed

try88 发表于 2011-6-22 00:55:28

自己 Make 错误信息如下:
#make
.....
.....
....

libtool: link: ranlib .libs/udf_example.a
libtool: link: ( cd ".libs" && rm -f "udf_example.la" && ln -s "../udf_example.la" "udf_example.la" )
g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local/mysql\"" -DMYSQL_DATADIR="\"/usr/local/mysql/var\"" -DSHAREDIR="\"/usr/local/mysql/share/mysql\"" -DPLUGINDIR="\"/usr/local/mysql/lib/mysql/plugin\"" -DHAVE_EVENT_SCHEDULER -DHAVE_CONFIG_H -I. -I../include -I../include -I../include -I../regex -I.   -O3    -fno-implicit-templates -fno-exceptions -fno-rtti -MT sql_lex.o -MD -MP -MF .deps/sql_lex.Tpo -c -o sql_lex.o sql_lex.cc
mv -f .deps/sql_lex.Tpo .deps/sql_lex.Po
g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local/mysql\"" -DMYSQL_DATADIR="\"/usr/local/mysql/var\"" -DSHAREDIR="\"/usr/local/mysql/share/mysql\"" -DPLUGINDIR="\"/usr/local/mysql/lib/mysql/plugin\"" -DHAVE_EVENT_SCHEDULER -DHAVE_CONFIG_H -I. -I../include -I../include -I../include -I../regex -I.   -O3    -fno-implicit-templates -fno-exceptions -fno-rtti -MT sql_handler.o -MD -MP -MF .deps/sql_handler.Tpo -c -o sql_handler.o sql_handler.cc
mv -f .deps/sql_handler.Tpo .deps/sql_handler.Po
g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local/mysql\"" -DMYSQL_DATADIR="\"/usr/local/mysql/var\"" -DSHAREDIR="\"/usr/local/mysql/share/mysql\"" -DPLUGINDIR="\"/usr/local/mysql/lib/mysql/plugin\"" -DHAVE_EVENT_SCHEDULER -DHAVE_CONFIG_H -I. -I../include -I../include -I../include -I../regex -I.   -O3    -fno-implicit-templates -fno-exceptions -fno-rtti -MT sql_partition.o -MD -MP -MF .deps/sql_partition.Tpo -c -o sql_partition.o sql_partition.cc
mv -f .deps/sql_partition.Tpo .deps/sql_partition.Po
g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local/mysql\"" -DMYSQL_DATADIR="\"/usr/local/mysql/var\"" -DSHAREDIR="\"/usr/local/mysql/share/mysql\"" -DPLUGINDIR="\"/usr/local/mysql/lib/mysql/plugin\"" -DHAVE_EVENT_SCHEDULER -DHAVE_CONFIG_H -I. -I../include -I../include -I../include -I../regex -I.   -O3    -fno-implicit-templates -fno-exceptions -fno-rtti -MT item.o -MD -MP -MF .deps/item.Tpo -c -o item.o item.cc
virtual memory exhausted: Cannot allocate memory
make: *** Error 1
make: Leaving directory `/root/lnmp0.7/mysql-5.1.54/sql'
make: *** Error 1
make: Leaving directory `/root/lnmp0.7/mysql-5.1.54/sql'
make: *** Error 2
make: Leaving directory `/root/lnmp0.7/mysql-5.1.54/sql'
make: *** Error 1

try88 发表于 2011-6-22 01:16:39

我的vps是2G的,居然 virtual memory exhausted: Cannot allocate memory
会是什么问题啊?

yuweitaocn 发表于 2011-6-22 08:54:30

你的LNMP没有安装成功,不会的话全部重新装即可,自己装的话PHP摸块自己编译以下即可解决问题.

licess 发表于 2011-6-22 09:11:20

ulimit -a把返回结果发一下

try88 发表于 2011-6-22 18:38:03

# ulimit -a
core file size          (blocks, -c) 0
data seg size         (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals               (-i) 169984
max locked memory       (kbytes, -l) 32
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues   (bytes, -q) 819200
real-time priority            (-r) 0
stack size            (kbytes, -s) 10240
cpu time               (seconds, -t) unlimited
max user processes            (-u) 169984
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

try88 发表于 2011-6-22 18:38:35

无数次重装都还是不行

try88 发表于 2011-6-23 01:14:16

用 yum 安装自行解决

fly785041 发表于 2012-5-7 23:05:43

我也出现同样的问题。求解...

我也出现同样的问题。求解...
页: [1]
查看完整版本: CentOS 32 VPS安装LNMP V0.7失败,无法启动mysql和php