yum设置国内镜像源

备份原来的镜像源

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

下载新的CentOS-Base.repo

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

posted @ 2020-03-14 12:02  StivenYang  阅读(552)  评论(0编辑  收藏  举报