yum源配置 1.备份原始repo文件,并下载阿里云的repo2.清除原来的缓存,对新yum源缓存 1.备份原始repo文件,并下载阿里云的repo cd /etc/yum.repos.d mkdir bak mv ./* bak wget http://mirrors.aliyun.com/repo/Centos-7.repo?spm=a2c6h.25603864.0.0.3d975969Hege2K -O Centos-7.repo 2.清除原来的缓存,对新yum源缓存 yum clean all yum makecache