将Centos的yum源更换为阿里云源
生活随笔
收集整理的這篇文章主要介紹了
将Centos的yum源更换为阿里云源
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
將Centos的yum源更換為阿里云源
1、備份
mv?/etc/yum.repos.d/CentOS-Base.repo?/etc/yum.repos.d/CentOS-Base.repo.backup2、下載新的CentOS-Base.repo 到/etc/yum.repos.d/
CentOS 5
wget?-O?/etc/yum.repos.d/CentOS-Base.repo?http://mirrors.aliyun.com/repo/Centos-5.repoCentOS 6
wget?-O?/etc/yum.repos.d/CentOS-Base.repo?http://mirrors.aliyun.com/repo/Centos-6.repoCentOS 7
wget?-O?/etc/yum.repos.d/CentOS-Base.repo?http://mirrors.aliyun.com/repo/Centos-7.repo3、之后運行yum makecache生成緩存
轉載于:https://blog.51cto.com/xyvariable/1910591
總結
以上是生活随笔為你收集整理的将Centos的yum源更换为阿里云源的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 关于ActiveMQ序列化对象爆“For
- 下一篇: PAP CHAP认证