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 http://mirrors.aliyun.com/repo/Centos-7.repo

清除缓存,生成新缓存

yum clean all
yum makecache
posted @ 2022-04-02 16:36  请务必优秀  阅读(247)  评论(0编辑  收藏  举报