CentOS更改镜像源

#备份数据
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 https://mirrors.aliyun.com/repo/Centos-7.repo

#清楚缓存
yum makecache

 

posted @ 2022-07-05 15:30  joshua317  阅读(265)  评论(0编辑  收藏  举报