lnmp安装包有问题了

一个稍微小白的客户发现Nignx一键安装包无法安装,我登录VPS后用Yum -y update,发现报错:

Error: Missing Dependency: libedit.so.0 is needed by package openssh-clients-5.8p2-16.el5.1.i386

网上找了个解决方法:

rpm -Uvh ftp://ftp.pbone.net/mirror/atrpms.net/el5-i386/atrpms/stable/libedit0-3.0-1.20090722cvs.el5.i386.rpm

后来发现是因为epel-release-5-4.noarch.rpm原有的下载地址有误,原来是这样安装epel的:

rpm -ihv http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

但是今天发现这样rpm无法安装,更换如下方式:

wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

rpm -ihv epel-release-5-4.noarch.rpm

然后就OK了,估计是download.fedoraproject.org作了某些镜像分发,然后rpm内置简单的下载机制就无法下载了。

还有默认安装的nginx-stable后,启动报错:

Starting nginx: nginx: [emerg] unknown directive "limit_conn_zone" in /etc/nginx/nginx.conf:37

不得已,安装包里面改为yum install nginx,而不是nginx-stable.

Leave a Reply

Your email address will not be published. Required fields are marked *