VPS侦探论坛

 找回密码
 注册
查看: 10062|回复: 9

军哥你一定要帮我啊!centos上安装lnmp始终无法成功。

[复制链接]
发表于 2011-2-13 21:00:05 | 显示全部楼层 |阅读模式

我在vmware虚拟机centos平台上,安装lnmp始终无法成功。安装其他的软件如lanmp mapn,等也都无法成功。
都有20天了。安装了很多次。
我在全球主机交流论坛上为此事也发了很多贴子,也没解决。
如此贴:
http://www.hostloc.com/thread-46415-1-1.html
http://www.hostloc.com/thread-46975-1-1.html
还有其他贴子。


我现在把安装时的log发给你,这个log是我安装lnmp0.6时产生的。
拜托你给我看看,实在是没办法了。

[ 本帖最后由 wjhhxl 于 2011-2-15 07:47 编辑 ]

本帖子中包含更多资源

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

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

回复 1# 的帖子



每次都是安装下面这段代码时,停住很长时间不动。
make[2]: Entering directory `/root/lnmp0.6-full/mysql-5.1.48/mysql-test'
make[3]: Entering directory `/root/lnmp0.6-full/mysql-5.1.48/mysql-test'
make[3]: Nothing to be done for `install-exec-am'.
make        INSTALL_TO_DIR="/usr/local/mysql/mysql-test" install_test_files
make[4]: Entering directory `/root/lnmp0.6-full/mysql-5.1.48/mysql-test'
停在这个地方很长时间很正常。

Starting php_fpm Failed loading /usr/local/zend/ZendOptimizer.so:  /usr/local/zend/ZendOptimizer.so: cannot restore segment prot after reloc: Permission denied
done 解决方法:https://bbs.vpser.net/thread-1143-1-1.html
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-2-14 17:18:08 | 显示全部楼层

谢谢军哥,真是厉害,一招就解决别人从未解决过的问题!
现在好像重启成功了,可仍然打不开虚拟机上的网站,不知道是怎么回事,

重启信息如下:
[root@localhost ~]# /root/lnmp restart
=========================================================================
Manager for LNMP V0.6  ,  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}
=========================================================================
Reload LNMP...
Reload Nginx configure...
the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
configuration file /usr/local/nginx/conf/nginx.conf test is successful
Nginx program is reloding!
Shutting down MySQL. SUCCESS!
Starting MySQL. SUCCESS!
Shutting down php_fpm . done
Starting php_fpm  done
[root@localhost ~]#
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-2-14 18:49:28 | 显示全部楼层



再想麻烦一下,

Restarting nginx daemon: nginx Remaining processes: 11978
请问我以前安装程序(好像是其他的lanmp程序,老出现这样的问题,是怎么回事。
也是安装不了。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-2-14 20:06:57 | 显示全部楼层

回复 3# 的帖子


无法访问虚拟机的应该是iptables的问题,执行:/etc/init.d/iptables stop,再访问试试

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

 楼主| 发表于 2011-2-14 21:47:24 | 显示全部楼层

一切解决,军哥你太强悍了,我照你的方法,不仅lnmp可以访问,我安装mapn,也可以访问。
太强了,军哥你真是太强了。

不过,我在重启mapn(并非你的软件),还是有提示这一句
Restarting nginx daemon: nginx Remaining processes: 12504
但奇怪的是,现在不影响网站访问了。

[ 本帖最后由 wjhhxl 于 2011-2-15 07:48 编辑 ]
发表于 2011-2-14 22:30:30 | 显示全部楼层

回复 6# 的帖子


提示的nginx进程ID是多少
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-2-15 21:01:29 | 显示全部楼层

原帖由 licess 于 2011-2-14 20:06 发表
无法访问虚拟机的应该是iptables的问题,执行:/etc/init.d/iptables stop,再访问试试

刚才重启了。发现又要执行一次这个命令才能访问
看来此方法只是临时解决问题,郁闷!
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-2-15 21:45:59 | 显示全部楼层

回复 8# 的帖子



centos的话执行:chkconfig iptables off
或yum remove iptables 直接删除。

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

 楼主| 发表于 2011-2-16 07:54:20 | 显示全部楼层



谢谢!!!!!!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-19 09:02 , Processed in 0.031303 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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