更换源之前,请确保Centos7 已经连上网
复制代码
1
2
3
4
5
6
cd /etc
cd /etc/yum.repos.d/
mv CentOS-Base.repo CentOS-Base.repo.back
#建议备份或者改名
wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum makecache #生成缓存
更详细的了解
最后
以上就是活力棒球最近收集整理的关于Centos7更换阿里源的全部内容,更多相关Centos7更换阿里源内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复