epel扩展源
yum -y install epel-release
yum clean
yum makecache
163源
cd /etc/yum.d/
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
阿里
wget -O /etc/yum.repos.d/ali.repo http://mirrors.aliyun.com/repo/Centos-7.repo
sohu不好用,还在测试
cat << 'eof' > /etc/yum.repos.d/sohu.repo
[base]
name=sohu baseurl=http://mirrors.sohu.com/centos/$releasever/os/$basearch/
gpgcheck=1
enable=1
[epel]
name=epel
baseurl=http://mirrors.sohu.com/fedora-epel/6Server/x86_64/
enable=1
gpgcheck=1
eof
基础网络yum源和epel扩展
wget -O /etc/yum.repos.d/CentOS-7.repo https://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum clean all && yum makecache
配置php扩展源
yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm