标签:配置 strong backup aliyun http repos 备份 互联网 mirror
配置阿里云yum源 前提:可以访问互联网1. 备份你的原镜像文件,以免出错后可以恢复
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2.下载新的CentOS-Base.repo 到/etc/yum.repos.d/
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3.清除原有yum缓存
yum clean all
4.生成缓存
yum makecache
5.查询yum源
yum repolist
1.备份你的原镜像文件,以免出错后可以恢复
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2.下载新的CentOS-Base.repo 到/etc/yum.repos.d/
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo
3.清楚原有yum缓存
yum clean all
4.生成缓存
yum makecache
5.查看yum源
yum repolist
标签:配置 strong backup aliyun http repos 备份 互联网 mirror
原文地址:https://blog.51cto.com/14588901/2446362