php服务器告别编译

2017-02-13  本文已影响23人  简书说我的昵称违规

尽管源码编译安装看着长串的编译过程执行,有种飘飘然的装B感,但是有的时候的编译不通过和漫长的时间等待着实让人烦。

所以可以试试以下几个源:

1.webtatic

rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm

2.atomic

wget http://www.atomicorp.com/installers/atomic
chmod +x atomic
./atomic

3.阿里云源

1、备份

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

2、下载新的CENTOS-BASE.REPO 到/ETC/YUM.REPOS.D/

CENTOS 5

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

CENTOS 6

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

CENTOS 7

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

3、之后运行YUM MAKECACHE生成缓存

4.epel

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

su -c 'rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm'   #64位
上一篇下一篇

猜你喜欢

热点阅读