CentOS yum镜像速度测试记录文件
创始人
2024-06-23 07:40:55
0

在向大家详细介绍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  

【编辑推荐】

  1. CentOS yum仓库使用 ISO 文件制作
  2. CentOS yum服务器安装与使用命令
  3. CentOS yum配置安装软件与配置文件修改
  4. CentOS cacti系统环境安装snmp的支持工具
  5. 介绍CentOS yum使用基本进行整理

相关内容

热门资讯

PHP新手之PHP入门 PHP是一种易于学习和使用的服务器端脚本语言。只需要很少的编程知识你就能使用PHP建立一个真正交互的...
网络中立的未来 网络中立性是什... 《牛津词典》中对“网络中立”的解释是“电信运营商应秉持的一种原则,即不考虑来源地提供所有内容和应用的...
各种千兆交换机的数据接口类型详... 千兆交换机有很多值得学习的地方,这里我们主要介绍各种千兆交换机的数据接口类型,作为局域网的主要连接设...
全面诠释网络负载均衡 负载均衡的出现大大缓解了服务器的压力,更是有效的利用了资源,提高了效率。那么我们现在来说一下网络负载...
什么是大数据安全 什么是大数据... 在《为什么需要大数据安全分析》一文中,我们已经阐述了一个重要观点,即:安全要素信息呈现出大数据的特征...
如何允许远程连接到MySQL数... [[277004]]【51CTO.com快译】默认情况下,MySQL服务器仅侦听来自localhos...
如何利用交换机和端口设置来管理... 在网络管理中,总是有些人让管理员头疼。下面我们就将介绍一下一个网管员利用交换机以及端口设置等来进行D...
P2P的自白|我不生产内容,我... 现在一提起P2P,人们就会联想到正在被有关部门“围剿”的互联网理财服务。×租宝事件使得劳...
Intel将Moblin社区控... 本周二,非营利机构Linux基金会宣布,他们将担负起Moblin社区的管理工作,而这之前,Mobli...
施耐德电气数据中心整体解决方案... 近日,全球能效管理专家施耐德电气正式启动大型体验活动“能效中国行——2012卡车巡展”,作为该活动的...