增加源:

参考文章:http://centos.tel.dn.ua/repository/centos/readme.txt

 
For use this repo create file centos.alt.ru.repo in /etc/yum.repo.d
x64位增加文件centos.alt.ru.repo到目录/etc/yum.repo.d(32位:/etc/yum.repos.d/)下内容如下:
[CentALT]
name=CentALT Packages for Enterprise Linux 5 - $basearch
baseurl=http://centos.alt.ru/repository/centos/5/$basearch/
enabled=1
gpgcheck=0

and enable EPEL repository
使EPEL库
for i386
rpm -ihv http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm

for x86_64
rpm -ihv http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm


执行:yum install nginx

如果 你要用 nginx 最新稳定版,可执行:yum install nginx-stable

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。