[centos yum源配置]CentOS下提高YUM镜像地址下载速度几种方法

更新时间:2018-10-03    来源:CentOS    手机版     字体:

【www.bbyears.com--CentOS】


通过以下两种方法可以完成镜像地址的修改,

1.安装yum-fastestmirror可以自动选择最快的镜像下载
2.更改下载镜像地址,选择国内的镜像地址下载

需要注意的是,以下如果安装了fastestmirror之后,由于插件使用的是动态选择的镜像地址,修改后的镜像地址可能会无效。


方法1

 代码如下

yum install yum-plugin-fastestmirror

方法2

 代码如下

cd /etc/yum.repos.d
mv CentOS-Base.repo  CentOS-Base.repo.bak
wget http://mirrors.163.com/.help/CentOS-Base-163.repo
mv CentOS-Base-163.repo  CentOS-Base.repo

推荐使用以下镜像

公网
163网易: http://mirrors.163.com/.help/CentOS-Base-163.repo
搜狐: http://mirrors.sohu.com/help/CentOS-Base-sohu.repo
教育网/公网
中国科技大学: http://centos.ustc.edu.cn/CentOS-Base.repo

本文来源:http://www.bbyears.com/caozuoxitong/44798.html

热门标签

更多>>

本类排行