VPS侦探论坛

 找回密码
 注册
查看: 187567|回复: 51

LNMP一键安装包常见错误及解决方法(不定期更新)

[复制链接]
发表于 2010-8-18 10:28:16 | 显示全部楼层 |阅读模式

1、开始安装LNMP时,前面提示error: package httpd is not installed , error: package php is not installed ,error: package mysql is not installed
      
这个不是错误信息,这个是检查系统环境,将原系统中的php、apache、mysql删除,请不必在意这个问题。

2、开始安装LNMP时,停在 make[3]: Leaving directory `/root/lnmp0.4-full/mysql-5.1.44/mysql-test 不动。
答:MySQL编译测试mysql,这个地方会消耗的时间比较长,多等一下就可以了。

3、安装时经常掉线怎么办?
   请参照此教程:https://www.vpser.net/manage/run-screen-lnmp.html

4、安装完LNMP后出现502 Bad Gateway

     解决方法:https://bbs.vpser.net/viewthread.php?tid=1144

5、安装完LNMP后,直接访问IP显示403 Forbidden
      
安装完成后域名/home/wwwroot/下面没有index文件,所以直接访问IP会显示403 Forbidden。

6、LNMP如何删除已添加的域名?
   解决方法:https://bbs.vpser.net/thread-1978-1-1.html

7、如何给php安装自己需要的模块?
解决方法:https://www.vpser.net/manage/lnmp-php-install-ext.html

8、如何添加404错误页面?
解决方法:https://bbs.vpser.net/thread-2175-1-1.html

7、安装完LNMP后,安装Pureftpd出现:configure: error: Your MySQL client libraries aren't properly installed
      解决方法:https://bbs.vpser.net/thread-1367-1-7.html

8、安装完Pureftpd,用创建的ftp帐号链接显示530验证错误。
      解决方法:530 验证错误应该是mysql链接信息错误引起的,检查一下/usr/local/pureftpd/pureftpd-mysql.conf  和/home/wwwroot/ftp/config.php 中的mysql链接信息和mysql数据库中的信息是否一致。
9、MySQL启动错误:[Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.
     解决方法:https://bbs.vpser.net/thread-1844-1-1.html

10、ZendOptimizer.so:connot restore segment prot after reloc: Permission denied 错误。
     解决方法:https://bbs.vpser.net/thread-1143-1-1.html

11、如何开启IMAP模块?
解决方法:https://bbs.vpser.net/thread-1150-1-1.html

12、如何升级Nginx版本?
解决方法:https://www.vpser.net/build/lnmp-auto-upgrade-nginx-to-any-version.html

13、安装好后,端口正常,Ping正常,但是无法通过IP或域名访问网站
解决方法:一般都是因为iptables引起的,可以通过yum或apt-get删除iptables,或/etc/init.d/iptables stop 停止iptables。如果想保留iptables可以按这里
清除原有iptables记录。

14、安装eaccelerator时,eaccelerator官方下载地址返回404解决方法:eaccelerator官方下载地址貌似失效,从http://soft.vpser.net/web/eaccelerator/ 获取你需要的eaccelerator地址。

15、LNMP/LNMPA,访问http://域名/ftp/这个ftp管理界面出现504错误或一直卡在登陆页面?
解决方法:https://bbs.vpser.net/thread-2763-1-1.html

16、如何修改Pureftpd管理界面的登录密码?
解决方法:https://bbs.vpser.net/thread-2038-1-1.html

17、Pureftpd目录的文件数限制如何解除?
解决方法:https://bbs.vpser.net/thread-3509-1-2.html

18、如何确认Memcached已经安装成功?
解决方法:https://bbs.vpser.net/thread-6203-1-1.html

19、升级到PHP 5.3.* 版本后为什么探针显示不支持Zend Optimizer了?
答:PHP 5.3.* 之后的版本里Zend Optimizer已经改名为Zend Guard Loader,虽然探针无法查到,可以在phpinfo里看到,需要Zend Optimizer的程序也是可以正常运行的,不需要担心。

20、安装好LNMP后,如何更改网站的存放目录和MySQL的数据库存放目录?
答:网站存放目录的更改只需要修改对应虚拟主机的配置文件,将里面的root 后的目录改成新的目录,然后执行:cp -a 老目录  新目录,chown www:www -R 新目录。(LNMP1.2的话还需要修改网站目录下的.user.ini 文件里的目录,参考http://lnmp.org/faq/lnmp-vhost-add-howto.html 末尾“其他事项”的说明。)
MySQL目录的更改,首先需要停掉mysql服务器/etc/init.d/mysql stop,下面新目录以/data/mysql 为例,然后cp -a /usr/local/mysql/var/* /data/mysql/,再chown mysql:mysql -R /data/mysql/ 下面再修改/etc/my.cnf ,查找[mysqld]  ,在下面加入datadir      = /data/mysql 保存,如果开启了innodb还需要修改innodb_data_home_dir 和innodb_log_group_home_dir为新的/data/mysql,启动mysql。

21、LNMP 0.9禁用了部分存在危险的PHP函数,我想开启,怎么操作?
答:修改/usr/local/php/etc/php.ini 查找disable_functions 将后面要使用的函数删掉,保存,然后执行:/etc/init.d/php-fpm restart 重启后即可。

22、LNMP 下如何安装pear?
答:https://bbs.vpser.net/thread-8721-1-1.html

23、LNMP下如何限制Nginx每个IP的连接数和速度?解决方法:https://bbs.vpser.net/thread-3017-1-1.html

24、LNMP优化教程 参考:https://bbs.vpser.net/thread-8914-1-1.html

25、安装时卡在Starting php-fpm如何解决? 在一些系统下php 5.2版本有问题,可以直接按Ctrl+C后运行./upgrade_php.sh 升级php至升级php到5.3.27或更高版本。


更多常见问题,请到官网:https://lnmp.org/faq.html 查看。

发帖前请先搜索确认没有相关帖子或原有解决方法不行。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-10-30 19:24:05 | 显示全部楼层

求助



root@DESKTOP-0DAFK94:/mnt/c/Users/MC# lnmp start
+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|              https://lnmp.org             |
+-------------------------------------------+
Starting LNMP...
Starting nginx... Cannot open netlink socket: Protocol not supported
done
Starting MySQL
........ *
Starting php-fpm  done

安装好lnmp后,启动lnmp时nginx启动不了,netlink协议不支持吗?在nginx.conf配置里有配置socket啊
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2010-10-21 19:51:36 | 显示全部楼层

我是在这里卡住了,过了10多分钟终于开始动了。
make    INSTALL_TO_DIR="/usr/local/mysql/mysql-test" install_test_files
make[4]: Entering directory `/root/lnmp0.5/mysql-5.1.48/mysql-test'

[ 本帖最后由 freemangv 于 2010-10-21 19:59 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2010-10-28 15:53:40 | 显示全部楼层

我是在这里卡住了,就这样一直挂着




make[4]: Entering directory `/root/lnmp0.5/mysql-5.1.48/mysql-test'
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2010-10-28 15:55:26 | 显示全部楼层

我是在这里卡住了,就这样一直挂着,然后再动一下提示连接失效,是不是SSH连接有时间限制哟


make[4]: Entering directory `/root/lnmp0.5/mysql-5.1.48/mysql-test'


群主帮帮我,不胜感激

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

 楼主| 发表于 2010-10-28 16:09:40 | 显示全部楼层

回复 4# 的帖子


等着就行了,这个地方占用时间比较长。在screen中运行就行了。https://www.vpser.net/manage/run-screen-lnmp.html
发表于 2010-11-12 16:48:52 | 显示全部楼层

原帖由 licess 于 2010-8-18 10:28 发表
2、开始安装LNMP时,停在 make[3]: Leaving directory `/root/lnmp0.4-full/mysql-5.1.44/mysql-test 不动。

...


终于找到说法了,我还以为死机了呢。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2010-11-19 07:15:06 | 显示全部楼层

以上问题都没出现,我的是安装完后显示nginx is stop
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2010-12-19 14:31:15 | 显示全部楼层


  我安装完了 不能访问网站
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-3-17 17:24:58 | 显示全部楼层



daijy:~# /root/lnmp start
=========================================================================
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}
=========================================================================
Starting LNMP...
/root/lnmp: line 31: /usr/local/nginx/sbin/nginx: No such file or directory
Nginx is successful start!
/root/lnmp: line 34: /usr/local/php/sbin/php-fpm: No such file or directory
/root/lnmp: line 35: /etc/init.d/mysql: No such file or directory
发表于 2011-3-23 16:30:22 | 显示全部楼层

我用的是centos5 x86_64,跟楼 上的兄弟一个情况
发表于 2011-4-20 14:40:30 | 显示全部楼层

Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : ntp                                                      1/1

到这就动不了了
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-4-20 15:42:09 | 显示全部楼层
eaccelerator-0.9.5.3/ea_dasm.c
eaccelerator-0.9.5.3/ChangeLog
eaccelerator-0.9.5.3/eaccelerator.ini
./eaccelerator.sh: line 41: /usr/local/php/bin/phpize: No such file or directory
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
./eaccelerator.sh: line 43: make: command not found
./eaccelerator.sh: line 44: make: command not found
Reload php-fpm
./eaccelerator.sh: line 74: /usr/local/php/sbin/php-fpm: No such file or directory

安装eaccelerator过程中出现No such file or directory,是不是安装出错误了
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-4-20 17:18:38 | 显示全部楼层

回复 12# 的帖子

你php没有安装成功,连make、gcc等最基本的都没安装上。

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

发表于 2011-5-12 10:53:21 | 显示全部楼层

我的死在这个地方不动了

http://centos.mirror.cdnetworks. ... .17-1.el5.i386.rpm: [Errno -1] Package does not match intended download
Trying other mirror.
http://data.nicehosting.co.kr/os ... 7.el5_6.3.i386.rpm: [Errno 14] HTTP Error 403: Forbidden
Trying other mirror.
我的死在这个地方不动了
发表于 2011-8-23 23:52:41 | 显示全部楼层

[help]请问一下LNMP0.7有没有默认安装APACHE啊

请问一下LNMP0.7有没有默认安装APACHE啊,
如果安装了,安在什么地方了?
如果没有的话怎么安装啊?

我用的是debian6.0.2.1 i386
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-3-19 12:24 , Processed in 0.033581 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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