centos源安装升级php版本

通常yum源的版本都比较低,在需要高版本php的时候,一般的yum源就不适合了。这里记录一下安装高版本的yum源

rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sed -i '/enabled/s/=0/=1/g' /etc/yum.repos.d/remi.repo 
yum clean all
yum makecache
yum update php*

remi源有比较新的php版本,直接update后就是新版本的php了。