在的centos的默认源里是不提供nginx和 php5-fpm这些包的,baidu上介绍较多的方法是编译。 google上推荐较多的解决方法是使用EPEL源来实现的。

fedoraproject的解析中可以得知,这个包应该算 是fedora的一个官方包,有点像debian的官方backports,无论如何能快速方便安全得解决centos的软件不足问题。EPEL也是除了oracle外唯一能被我选用的repo

添加repo后重新yum update即可

su -c 'rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm'

using aliyun

using aliyun mirror

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

epel using aliyun

wget -O /etc/yum.repos.d/epel-7.repo https://mirrors.aliyun.com/repo/epel-7.repo

clean and update cache

yum clean all && yum makecache