VMware更新阿里云镜像源CentOS7镜像

阿里云镜像源地址及安装地址

https://developer.aliyun.com/mirror/?spm=a2c6h.13651102.0.0.3e221b111kK44P

更新源之前把之前的国外的镜像先备份一下

 

切换到yum

cd /etc/yum.repos.d/

 

安装wget

yum install -y wget

 

再进行备份

mv CentOS-Base.repo CentOS-Base.repo.bak

 

更新阿里云镜像源命令

wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo

阿里云镜像源

胜象大百科