wblbird 发表于 2014-1-2 15:52:30

安装失败,求助

Checking...
Nginx: OK
PHP: OK
PHP-FPM: OK
Error: /usr/local/mysql not found!!!MySQL install failed.
Sorry,Failed to install LNMP!
Please visit https://bbs.vpser.net/forum-25-1.html feedback errors and logs.
You can download /root/lnmp-install.log from your server,and upload lnmp-install.log to LNMP Forum.


之前用yum安装了ngnix,mysql,php,也能正常使用了,但是太菜很多东西配置不来,转来一键安装lnmp
所以用yum卸载了相关东西,重装了一键安装包lnmp,会后mysql貌似安装失败

licess 发表于 2014-1-2 17:02:36

./centos.sh: line 431: cmake: command not found
make: *** 没有指明目标并且找不到 makefile。 停止。

cmake没有安装上,单独yum install cmake安装上后,再重装装

wblbird 发表于 2014-1-2 22:55:23

发表了提问后,自己怀疑yum装的MYSQL没删除干净,就立即去 yum remove mysql*,结果都装上了,但是ngnix启动了,看网页还是提示错误,我去看了下ngnix.conf发现这个配置还是我之前yum装的ngnix的配置,我该如何做?删除/etc/ngnix/*,然后重装一键安装lnmp?

wblbird 发表于 2014-1-2 23:03:13

-e "s|%%ERROR_LOG_PATH%%|/usr/local/nginx/logs/error.log|"
                < man/nginx.8 > objs/nginx.8
make: Leaving directory `/lnmp1.0-full/nginx-1.2.7'
make -f objs/Makefile install
make: Entering directory `/lnmp1.0-full/nginx-1.2.7'
test -d '/usr/local/nginx' || mkdir -p '/usr/local/nginx'
test -d '/usr/local/nginx/sbin'                 || mkdir -p '/usr/local/nginx/sbin'
test ! -f '/usr/local/nginx/sbin/nginx'                 || mv '/usr/local/nginx/sbin/nginx'                         '/usr/local/nginx/sbin/nginx.old'
cp objs/nginx '/usr/local/nginx/sbin/nginx'
test -d '/usr/local/nginx/conf'                 || mkdir -p '/usr/local/nginx/conf'
cp conf/koi-win '/usr/local/nginx/conf'
cp conf/koi-utf '/usr/local/nginx/conf'
cp conf/win-utf '/usr/local/nginx/conf'
test -f '/usr/local/nginx/conf/mime.types'                 || cp conf/mime.types '/usr/local/nginx/conf'
cp conf/mime.types '/usr/local/nginx/conf/mime.types.default'
test -f '/usr/local/nginx/conf/fastcgi_params'                 || cp conf/fastcgi_params '/usr/local/nginx/conf'
cp conf/fastcgi_params                 '/usr/local/nginx/conf/fastcgi_params.default'
test -f '/usr/local/nginx/conf/fastcgi.conf'                 || cp conf/fastcgi.conf '/usr/local/nginx/conf'
cp conf/fastcgi.conf '/usr/local/nginx/conf/fastcgi.conf.default'
test -f '/usr/local/nginx/conf/uwsgi_params'                 || cp conf/uwsgi_params '/usr/local/nginx/conf'
cp conf/uwsgi_params                 '/usr/local/nginx/conf/uwsgi_params.default'
test -f '/usr/local/nginx/conf/scgi_params'                 || cp conf/scgi_params '/usr/local/nginx/conf'
cp conf/scgi_params                 '/usr/local/nginx/conf/scgi_params.default'
test -f '/usr/local/nginx/conf/nginx.conf'                 || cp conf/nginx.conf '/usr/local/nginx/conf/nginx.conf'
cp conf/nginx.conf '/usr/local/nginx/conf/nginx.conf.default'
test -d '/usr/local/nginx/logs'                 || mkdir -p '/usr/local/nginx/logs'
test -d '/usr/local/nginx/logs' ||                 mkdir -p '/usr/local/nginx/logs'
test -d '/usr/local/nginx/html'                 || cp -R html '/usr/local/nginx'
test -d '/usr/local/nginx/logs' ||                 mkdir -p '/usr/local/nginx/logs'
make: Leaving directory `/lnmp1.0-full/nginx-1.2.7'
ln: 创建符号链接 "/usr/bin/nginx": 文件已存在
Create PHP Info Tool...
Copy PHP Prober...
p.php
============================Install PHPMyAdmin=================================
mkdir: 无法创建目录"/home/wwwroot/default/phpmyadmin/upload/": 文件已存在
mkdir: 无法创建目录"/home/wwwroot/default/phpmyadmin/save/": 文件已存在
============================phpMyAdmin install completed=================================
============================add nginx and php-fpm on startup============================
Download new nginx init.d file......
--2014-01-02 16:41:16--http://soft.vpser.net/lnmp/ext/init.d.nginx
正在解析主机 soft.vpser.net... 96.44.153.111
正在连接 soft.vpser.net|96.44.153.111|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 416 Requested Range Not Satisfiable

    文件已下载完成;不会进行任何操作。

===========================add nginx and php-fpm on startup completed====================
Starting LNMP...
Starting MySQL.. SUCCESS!
Starting php-fpm ERROR: An another FPM instance seems to already listen on /tmp/php-cgi.sock
ERROR: FPM initialization failed
failed
Starting nginx daemon: nginxnginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: still could not bind()
nginx already running.
# Generated by iptables-save v1.4.7 on Thu Jan2 16:41:21 2014
*filter
:INPUT ACCEPT
:FORWARD ACCEPT
:OUTPUT ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
COMMIT
# Completed on Thu Jan2 16:41:21 2014
===================================== Check install ===================================

Checking...
Nginx: OK
PHP: OK
PHP-FPM: OK
MySQL: OK
Install lnmp 1.0 completed! enjoy it.
=========================================================================
LNMP V1.0 for CentOS/RadHat Linux VPSWritten by Licess
=========================================================================

For more information please visit http://www.lnmp.org/

lnmp status manage: /root/lnmp {start|stop|reload|restart|kill|status}
default mysql root password:danipp100xia
phpinfo : http://yourIP/phpinfo.php
phpMyAdmin : http://yourIP/phpmyadmin/
Prober : http://yourIP/p.php
Add VirtualHost : /root/vhost.sh

The path of some dirs:
mysql dir:   /usr/local/mysql
php dir:   /usr/local/php
nginx dir:   /usr/local/nginx
web dir :   /home/wwwroot/default

=========================================================================
=========================================================================
Manager for LNMP V1.0,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}
=========================================================================
Nginx is stop!
php-fpm is runing!
SUCCESS! MySQL running (26923)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State      
tcp      0      0 0.0.0.0:49161               0.0.0.0:*                   LISTEN      
tcp      0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN      
tcp      0      0 0.0.0.0:5900                0.0.0.0:*                   LISTEN      
tcp      0      0 0.0.0.0:111               0.0.0.0:*                   LISTEN      
tcp      0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN      
tcp      0      0 0.0.0.0:21                  0.0.0.0:*                   LISTEN      
tcp      0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      
tcp      0      0 127.0.0.1:631               0.0.0.0:*                   LISTEN      
tcp      0      0 0.0.0.0:5800                0.0.0.0:*                   LISTEN      
tcp      0      0 :::5900                     :::*                        LISTEN      
tcp      0      0 :::111                      :::*                        LISTEN      
tcp      0      0 :::22                     :::*                        LISTEN      
tcp      0      0 ::1:631                     :::*                        LISTEN      
tcp      0      0 :::50360                  :::*                        LISTEN      
tcp      0      0 :::5989                     :::*                        LISTEN      
tcp      0      0 :::5800                     :::*                        LISTEN      
# /root/lnmp restart
=========================================================================
Manager for LNMP V1.0,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...
Stopping nginx daemon: nginxcat: /usr/local/nginx/logs/nginx.pid: 没有那个文件或目录
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l
nginx not running.
Gracefully shutting down php-fpm . done
Shutting down MySQL. SUCCESS!
Starting LNMP...
Starting nginx daemon: nginxnginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: still could not bind()
nginx already running.
Starting php-fpmdone
Starting MySQL.. SUCCESS!
#

这个安装好后最后一段信息,还有我重启lnmp的信息

licess 发表于 2014-1-3 09:24:09

你重启一下vps看看各个服务正常运行就行了

wblbird 发表于 2014-1-3 21:40:52

OK了,原来LNMP的配置文件放的地方和yum安装的不一样啊,O(∩_∩)O谢谢军哥
页: [1]
查看完整版本: 安装失败,求助