yum源配置
1.备份/etc/yum.repos.d/下
cd /etc/yum.repos.d/
mv xxx.repo xxx.repo.back
2.下载阿里云的Centos-7.repo文件
wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3.重新加载yum
yum clean all
yum makecache
1.备份/etc/yum.repos.d/下
cd /etc/yum.repos.d/
mv xxx.repo xxx.repo.back
2.下载阿里云的Centos-7.repo文件
wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3.重新加载yum
yum clean all
yum makecache