CentOS 7配置阿里云yum源
1. 备份原有的yum源
cd /etc/yum.repos.d
mkdir bakup
mv *.repo /etc/yum.repos.d/bakup
2. 创建阿里云yum源
wget -O /etc/yum.repos.d/aliyun.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3. 清理并重新加载yum源
yum clean all && yum makecache
1. 备份原有的yum源
cd /etc/yum.repos.d
mkdir bakup
mv *.repo /etc/yum.repos.d/bakup
2. 创建阿里云yum源
wget -O /etc/yum.repos.d/aliyun.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3. 清理并重新加载yum源
yum clean all && yum makecache