centos7更换阿里云镜像
复制代码
1
2国内镜像源有很多,阿里云是个不错的选择,一个好的镜像源可以加快Centos7系统的更新升级或安装软件的速度
- 备份原来的yum源
复制代码
1
2cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
- 设置aliyun的yum源
复制代码
1
2wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
- 添加EPEL源
复制代码
1
2wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-7.repo
- 清理缓存并生成新的缓存
复制代码
1
2
3yum clean all yum makecache
最后
以上就是忐忑咖啡最近收集整理的关于centos7更换阿里云镜像的全部内容,更多相关centos7更换阿里云镜像内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复