打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
CentOS yum镜像速度测试记录文件

CentOS yum镜像速度测试记录文件

2010-02-22 16:27 佚名 CSDN 我要评论(0) 字号:T | T

由于CentOS yum中有的mirror速度是非常慢的,如果yum选择了这个mirror,这个时候CentOS yum就会非常慢,对此,可以下载fastestmirror插件,它会自动选择最快的

AD:

在向大家详细介绍CentOS yum之前,首先让大家了解下CentOS yum,然后全面介绍CentOS yum,希望对大家有用。CentOS yum安装方式在有网络环境的时候非常方便,选择一个比较快的CentOS yum源是非常有意义的

(1)自动选择最快的源

由于CentOS yum中有的mirror速度是非常慢的,如果yum选择了这个mirror,这个时候CentOS yum就会非常慢,对此,可以下载fastestmirror插件,它会自动选择最快的

  1. mirror:  
  2. yum install yum-fastestmirror -y  
  3. fastestmirror配置文件:(一般不用动)  
  4. /etc/yum/pluginconf.d/fastestmirror.conf  

你的CentOS yum镜像的速度测试记录文件:/var/cache/yum/timedhosts.txt

(2)一直受不了centos的更新源的速度,现在弄好了。更新200多MB的东东,5分钟搞定。1 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.old

2  创建新的repo文件vi /etc/yum.repos.d/CentOS-Base.repo

引用

  1. # CentOS-Base.repo  
  2. #  
  3. # This file uses a new mirrorlist system developed by Lance Davis for CentOS.  
  4. # The mirror system uses the connecting IP address of the client and the  
  5. # update status of each mirror to pick mirrors that are updated to and  
  6. # geographically close to the client. You should use this for CentOS updates  
  7. # unless you are manually picking other mirrors.  
  8. #  
  9. # If the mirrorlistdoes not work for you, as a fall back you can try the  
  10. # remarked out baseurlline instead.  
  11. #  
  12. #  
  13. [base]  
  14. name=CentOS-5.0 - Base  
  15. baseurl=http://mirror.be10.com/centos/5/os/$basearch/  
  16. gpgcheck=1 
  17. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 
  1. #released updates  
  2. [update]  
  3. name=CentOS-5.0 - Updates  
  4. baseurl=http://mirror.be10.com/centos/5/updates/$basearch/  
  5. gpgcheck=1 
  6. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 
  1. #packages used/produced in the build but not released  
  2. [addons]  
  3. name=CentOS-5.0 - Addons  
  4. baseurl=http://mirror.be10.com/centos/5/addons/$basearch/  
  5. gpgcheck=1 
  6. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5  
  7. #additional packages that may be useful  
  8. [extras]  
  9. name=CentOS-5.0 - Extras  
  10. baseurl=http://mirror.be10.com/centos/5/extras/$basearch/  
  11. gpgcheck=1 
  12. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5  
  1. #additional packages that extend functionality of existing packages  
  2. [centosplus]  
  3. name=CentOS-5.0 - Plus  
  4. baseurl=http://mirror.be10.com/centos/5/centosplus/$basearch/  
  5. gpgcheck=1 
  6. enabled=0 
  7. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 
  1. #contrib - packages by Centos Users  
  2. [contrib]  
  3. name=CentOS-5.0 - Contrib  
  4. baseurl=http://mirror.be10.com/centos/5/contrib/$basearch/  
  5. gpgcheck=1 
  6. enabled=0 
  7. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 
  1.  
  2. #packages in testing  
  3. [testing]  
  4. name=CentOS-5.0 - Testing  
  5. baseurl=http://mirror.be10.com/centos/5.0/testing/$basearch/  
  6. gpgcheck=1 
  7. enabled=0 
  8. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 
  1.  
  2. rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5  
  3. [root@localhost yum.repos.d]# yum upgrade  
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
【yum】 自从有了yum,红帽变得好美丽!~
基于Linux和Postfix的邮件系统安装手册
CentOS下yum安装、源的选择及介绍
解决Redhat Linux5 yum出现This system is not registered with RHN的方案 | 黄克业的博客
centos中配置yum源
Linux下Yum的使用
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服