rpm -ivh http://repo.webtatic.com/yum/el6/latest.rpm
rpm -ivh http://mirrors.aliyun.com/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh https://mirrors.tuna.tsinghua.edu.cn/repoforge/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
rpm -ivh http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
rpm -ivh https://mirrors.tuna.tsinghua.edu.cn/ius/archive/CentOS/6/x86_64/ius-release-1.0-13.ius.centos6.noarch.rpm
yum install python27 python27-devel python27-pip -y
mv /usr/bin/python /usr/bin/python2.6.6
ln -s /usr/bin/python2.7 /usr/bin/python
同理pip
mv /usr/bin/pip /usr/bin/pip2.6
ln -s /usr/bin/pip2.7 /usr/bin/pip
rpm -ivh http://mirrors.aliyun.com/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh https://mirrors.tuna.tsinghua.edu.cn/repoforge/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
rpm -ivh http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
rpm -ivh https://mirrors.tuna.tsinghua.edu.cn/ius/archive/CentOS/6/x86_64/ius-release-1.0-13.ius.centos6.noarch.rpm
yum install python27 python27-devel python27-pip -y
mv /usr/bin/python /usr/bin/python2.6.6
ln -s /usr/bin/python2.7 /usr/bin/python
同理pip
mv /usr/bin/pip /usr/bin/pip2.6
ln -s /usr/bin/pip2.7 /usr/bin/pip