VPS侦探论坛

 找回密码
 注册
查看: 10518|回复: 6

请问军哥,lnmp是否可以在linux mint9上安装?

[复制链接]
发表于 2011-1-18 22:28:02 | 显示全部楼层 |阅读模式

RT
初次接触lnmp,纯粹新手。
我今天在一台安装了linux mint9的系统上安装lnmp0.5-full,按照安装说明一路顺风顺水安装下去,安装到最后的日志如下:

==================== phpMyAdmin install completed ======================
p.php
update-rc.d: warning: /etc/init.d/nginx.sh missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts&gt;
System start/stop links for /etc/init.d/nginx.sh already exist.
update-rc.d: /etc/init.d/mysql: file does not exist
cp: “/usr/share/zoneinfo/Asia/Shanghai” 及 “/etc/localtime” 为同一文件
=========================================================================
Manager for LNMP V0.5  ,  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}
=========================================================================
Starting LNMP...
Nginx is runing!
===================================== Check install ===================================

/usr/local/nginx [found]
/usr/local/php [found]
Error: /usr/local/mysql not found!!!
========================== Check install ================================
Install LNMP V0.5 completed! enjoy it.
=========================================================================
LNMP V0.5 for Debian/Ubuntu 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:123456
phpinfo : http://www.abc.com/phpinfo.php
phpMyAdmin : http://www.abc.com/phpmyadmin/
Prober : http://www.abc.com/p.php

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

=========================================================================
=========================================================================
Manager for LNMP V0.5  ,  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 runing!
/root/lnmp: line 88: /etc/init.d/mysql: 没有那个文件或目录
激活Internet连接 (仅服务器)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN     
tcp6       0      0 ::1:631                 :::*                    LISTEN

打开http://127.0.0.1/ 是lnmp的安装成功提示页面!
但是打开
http://127.0.0.1/phpinfo.php
http://127.0.0.1/p.php
http://127.0.0.1/phpmyadmin/
都是
502 Bad Gateway错误,我按照论坛里面的那些办法设置,还是没有成功。
下面我再把安装过程中的一些日志贴在下面,供军哥查看分析:
..............................
dpkg:警告:忽略删除 php 的要求,系统没有安装该软件包。
sed: 无法读取 /etc/selinux/config: 没有那个文件或目录
.............................
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
E: 未发现软件包 php
.................................
正在读取状态信息... 完成      
ntp 已经是最新的版本了。
您可能需要运行“apt-get -f install”来纠正下列错误:
下列软件包有未满足的依赖关系:
libpcre3-dev : 依赖: libpcre3 (= 8.02-1) 但是 7.8-3 正要被安装
E: 有未能满足的依赖关系。请尝试不指明软件包的名字来运行“apt-get -f install”(也可以指定一个解决办法)。
.........................................
正在读取状态信息... 完成      
E: 未发现软件包 apt-spy
./debian.sh: line 97: apt-spy:找不到命令
./debian.sh: line 98: apt-spy:找不到命令
.......................................
下列软件包有未满足的依赖关系:
libcurl4-gnutls-dev : 冲突: libcurl-dev
libcurl4-openssl-dev : 冲突: libcurl-dev
E: 破损的软件包
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
注意,选取 libxslt1-dev 而非 libxslt-dev
libpspell-dev 已经是最新的版本了。
libxslt1-dev 已经是最新的版本了。
..............................
eval: 1: Bad substitution
make: *** 没有规则可以创建目标“all”。 停止。
strip: '/usr/local/php/bin/php-cgi': No such file
ln: 创建符号链接 “/usr/bin/php”: 文件已存在
package.xml
....................................
./debian.sh: line 277: /usr/local/php/bin/phpize: 没有那个文件或目录
./debian.sh: line 278: ./configure: 没有那个文件或目录
make: *** 没有指明目标并且找不到 makefile。 停止。
package2.xml
.............................
日志太多了,我就抓了这么点上来。请军哥百忙中看一下啊!!!!!!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-1-18 23:50:54 | 显示全部楼层


补充:

LNMP相关目录:
mysql :   /usr/local/mysql
php :     /usr/local/php
nginx :   /usr/local/nginx

安装完成后,/usr/local/mysql目录不存在,php   nginx成功创建!
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-1-19 10:55:29 | 显示全部楼层

lnmp目前只支持centos 和debian
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-1-19 11:13:30 | 显示全部楼层



谢谢军哥,我正在下linux mint debian(201101)版本,看看能不能安装,继续折腾
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-1-20 21:02:25 | 显示全部楼层

麻烦军哥再帮我看下,我重装了系统:Linux Mint debian

下面是系统信息:
LinuxMnt
版本 1 (debian)
内核 Linux 2.6.32-5-686
GNOME 2.30.2

硬件
内存:1009.9MiB
处理器:intel(R)Pentium(R)4 CPU 2.40GHz

系统状态
可用的磁盘空间:7.0GiB

我安装的是下载版lnmp 0.5,下面是安装到最后的信息:
==================== phpMyAdmin install completed ======================
p.php
update-rc.d: using dependency based boot sequencing
update-rc.d: using dependency based boot sequencing
=========================================================================
Manager for LNMP V0.5  ,  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}
=========================================================================
Starting LNMP...
Nginx is runing!
===================================== Check install ===================================
[H[2J/usr/local/nginx [found]
/usr/local/php [found]
/usr/local/mysql [found]
========================== Check install ================================
Install LNMP V0.5 completed! enjoy it.
=========================================================================
LNMP V0.5 for Debian/Ubuntu 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:123456
phpinfo : http://www.abc.com/phpinfo.php
phpMyAdmin : http://www.abc.com/phpmyadmin/
Prober : http://www.abc.com/p.php

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

=========================================================================
=========================================================================
Manager for LNMP V0.5  ,  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 runing!
MySQL running (8281).
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
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 127.0.0.1:631           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN     
tcp6       0      0 ::1:631                 :::*                    LISTEN     
tcp6       0      0 :::445                  :::*                    LISTEN     
tcp6       0      0 :::139                  :::*                    LISTEN  

这次Mysql安装貌似成功了:
  /usr/local/mysql
/usr/local/php
/usr/local/nginx
  /home/wwwroot
以上目录均创建成功了。下面是nginx_error.log的信息:
2011/01/20 15:56:37 [crit] 8289#0: *1 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: www.abc.com, request: "GET /p.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "127.0.0.1", referrer: "http://127.0.0.1/"
2011/01/20 15:56:42 [crit] 8289#0: *1 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: www.abc.com, request: "GET /phpinfo.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "127.0.0.1", referrer: "http://127.0.0.1/"
2011/01/20 17:27:18 [emerg] 16631#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2011/01/20 17:27:18 [emerg] 16631#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2011/01/20 17:27:18 [emerg] 16631#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2011/01/20 17:27:18 [emerg] 16631#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2011/01/20 17:27:18 [emerg] 16631#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2011/01/20 17:27:18 [emerg] 16631#0: still could not bind()
2011/01/20 17:29:45 [crit] 1633#0: *1 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: www.abc.com, request: "GET /p.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "127.0.0.1", referrer: "http://127.0.0.1/"
2011/01/20 17:29:50 [crit] 1633#0: *1 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: www.abc.com, request: "GET /phpmyadmin/ HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "127.0.0.1", referrer: "http://127.0.0.1/"
2011/01/20 17:29:53 [crit] 1633#0: *1 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: www.abc.com, request: "GET /phpinfo.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "127.0.0.1", referrer: "http://127.0.0.1/"
2011/01/20 17:45:06 [crit] 1633#0: *5 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: www.abc.com, request: "GET /p.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "127.0.0.1", referrer: "http://127.0.0.1/"

安装完成后,打开http://127.0.0.1/正常,
但打开 探针 phpinfo phpMyAdmin 仍然提示502 Bad Gateway,我查了一下,/tmp/php-cgi.sock文件不存在

下面是Linux Mint debian的介绍:
Linux Mint 项目组发布了一个新的项目 Linux Mint Debian (201009)。Linux Mint Debian  (201009) 是 Linux Mint 基于 Debian 的第一个分支(简称 LMDE),与 Debian  100%兼容。目前发行的版本为32位版本,不久之后会提供64位本。Linux Mint Debian (201009) 采用 Gnome  桌面系统。

官方声称此系统是永远不必重装的系统。基于 Debian 的这个发行版本更加快速,并且减少对上游内核组件的依赖,这个发行版本采用了一个新的安装系统。目前来说这个版本还有很多不足,不过 Linux Mint 有信心不断的改进和提升它。

本帖子中包含更多资源

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

x

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

发表于 2011-6-3 08:50:49 | 显示全部楼层

谢谢军哥
发表于 2011-6-3 08:53:54 | 显示全部楼层

lnmp目前只提供对centos、debian、ubuntu的支持。其他的发行版目前不会考虑。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-20 16:57 , Processed in 0.028101 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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