Centos 7 替換鏡像源

1 備份原始源

[root@localhost ~]# mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup centos

2 下載新的鏡像源

3 更新緩存

[root@localhost yum.repos.d]# yum makecache
已加載插件:fastestmirror, langpacks
http://mirrors.aliyuncs.com/centos/7/os/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://mirrors.aliyuncs.com/centos/7/os/x86_64/repodata/repomd.xml: (28, 'Connection timed out after 30000 milliseconds')正在嘗試其它鏡像。base | 3.6 kB 00:00:00extras | 3.4 kB 00:00:00updates | 3.4 kB 00:00:00(1/5): extras/7/x86_64/prestodelta | 102 kB 00:00:01(2/5): extras/7/x86_64/other_db | 108 kB 00:00:00(3/5): extras/7/x86_64/filelists_db | 636 kB 00:00:01(4/5): base/7/x86_64/other_db | 2.5 MB 00:00:02(5/5): base/7/x86_64/filelists_db | 6.7 MB 00:00:02Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com元數據緩存已創建
相關文章
相關標籤/搜索