VPS侦探论坛

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

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

[复制链接]
发表于 2011-6-22 00:03:29 | 显示全部楼层 |阅读模式

[root@vps5996 lnmp0.7]# /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 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-6-22 00:04:58 | 显示全部楼层


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

[root@vps5996 lnmp0.7]# cd /usr/local/
[root@vps5996 local]# dir
autoconf-2.13  etc    include  lib64    man    php   share  zend
bin            games  lib      libexec  nginx  sbin  src
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-6-22 00:21:46 | 显示全部楼层

启动php-fpm信息

[root@vps5996 init.d]# /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
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-6-22 00:55:28 | 显示全部楼层



自己 Make 错误信息如下:
[root@vps5996 mysql-5.1.54]#  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[3]: *** [item.o] Error 1
make[3]: Leaving directory `/root/lnmp0.7/mysql-5.1.54/sql'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/lnmp0.7/mysql-5.1.54/sql'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/lnmp0.7/mysql-5.1.54/sql'
make: *** [all-recursive] Error 1
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-6-22 01:16:39 | 显示全部楼层

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

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

发表于 2011-6-22 08:54:30 | 显示全部楼层

你的LNMP没有安装成功,不会的话全部重新装即可,自己装的话PHP摸块自己编译以下即可解决问题.
发表于 2011-6-22 09:11:20 | 显示全部楼层

ulimit -a把返回结果发一下
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-6-22 18:38:03 | 显示全部楼层

[root@vps5996 mysql-5.1.54]# 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
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-6-22 18:38:35 | 显示全部楼层


无数次重装都还是不行
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-6-23 01:14:16 | 显示全部楼层



用 yum 安装自行解决
发表于 2012-5-7 23:05:43 | 显示全部楼层

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


我也出现同样的问题。求解...
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-17 10:35 , Processed in 0.029701 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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