mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all # 清除系统所有的yum缓存
yum makecache # 生成yum缓存
命令是在CentOS系统中更换yum源为阿里云的镜像源的操作步骤。这些命令的作用分别是: