VPS侦探论坛

 找回密码
 注册
查看: 5383|回复: 5

安装失败,求助

[复制链接]
发表于 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貌似安装失败

本帖子中包含更多资源

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

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


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

cmake没有安装上,单独yum install cmake安装上后,再重装装
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2014-1-2 22:55:23 | 显示全部楼层

发表了提问后,自己怀疑yum装的MYSQL没删除干净,就立即去 yum remove mysql*,结果都装上了,但是ngnix启动了,看网页还是提示错误,我去看了下ngnix.conf发现这个配置还是我之前yum装的ngnix的配置,我该如何做?删除/etc/ngnix/*,然后重装一键安装lnmp?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2014-1-2 23:03:13 | 显示全部楼层



-e "s|%%ERROR_LOG_PATH%%|/usr/local/nginx/logs/error.log|"
                < man/nginx.8 > objs/nginx.8
make[1]: Leaving directory `/lnmp1.0-full/nginx-1.2.7'
make -f objs/Makefile install
make[1]: 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[1]: 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 [02-Jan-2014 16:41:19] ERROR: An another FPM instance seems to already listen on /tmp/php-cgi.sock
[02-Jan-2014 16:41:19] ERROR: FPM initialization failed
failed
Starting nginx daemon: nginxnginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
nginx already running.
# Generated by iptables-save v1.4.7 on Thu Jan  2 16:41:21 2014
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
COMMIT
# Completed on Thu Jan  2 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 VPS  Written 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@qyzgnet lnmp1.0-full]# /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 [sigspec]
nginx not running.
Gracefully shutting down php-fpm . done
Shutting down MySQL. SUCCESS!
Starting LNMP...
Starting nginx daemon: nginxnginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
nginx already running.
Starting php-fpm  done
Starting MySQL.. SUCCESS!
[root@qyzgnet lnmp1.0-full]#

这个安装好后最后一段信息,还有我重启lnmp的信息
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2014-1-3 09:24:09 | 显示全部楼层

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

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

 楼主| 发表于 2014-1-3 21:40:52 | 显示全部楼层

OK了,原来LNMP的配置文件放的地方和yum安装的不一样啊,O(∩_∩)O谢谢军哥
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-25 07:13 , Processed in 0.027617 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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