Centos的缺省软件源里竟然没有Nginx,真让我感到意外了。还好,参考一下,办法还是现成的。
Red Hat Enterprise Linux / CentOS Linux Enable EPEL (Extra Packages for Enterprise Linux) Repository
还是做个笔记吧:
# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
之后就可以yum install nginx啦。 🙂
UPDATE. 现在已经是release-5-4了, 不过不是什么问题吧.
UPDATE2. 查看Centos版本:
# cat /etc/*release*
查看Centos是32bit还是64bit版本:
# uname -a
… 2.6.18-028stab070.14 #1 SMP Thu Nov 18 16:04:02 MSK 2010 i686 i686 i386 GNU/Linux << 32bit
UPDATE3. 将CentOS标配PHP5.1.x升级到5.2.x, 因为Joomla1.6什么的会用到. http://wiki.centos.org/HowTos/PHP_5.1_To_5.2
#/etc/yum.repos.d/CentOS-Testing.repo
# CentOS-Testing:
# !!!! CAUTION !!!!
# This repository is a proving grounds for packages on their way to CentOSPlus and CentOS Extras.
# They may or may not replace core CentOS packages, and are not guaranteed to function properly.
# These packages build and install, but are waiting for feedback from testers as to
# functionality and stability. Packages in this repository will come and go during the
# development period, so it should not be left enabled or used on production systems without due
# consideration.
[c5-testing]
name=CentOS-5 Testing
baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
includepkgs=php*
然后yum update就可以了. 😀