Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to perform CentOS yum Mirror Speed Test record File

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

In this issue, the editor will bring you the record file of how to carry out the CentOS yum mirror speed test. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

CentOS yum installation is very convenient when there is a network environment, so it makes sense to choose a faster CentOS yum source.

(1) automatically select the fastest source

Because some mirror in CentOS yum is very slow, if yum chooses this mirror, CentOS yum will be very slow at this time. For this, you can download the fastestmirror plug-in, which automatically selects the fastest one.

Mirror: yum install yum-fastestmirror-y fastestmirror configuration file: (generally do not move) / etc/yum/pluginconf.d/fastestmirror.conf

The speed test record file of your CentOS yum image: / var/cache/yum/timedhosts.txt

(2) I can't stand the speed of the update source of centos, and now it's ready. Update more than 200 MB things, 5 minutes to finish. 1 mv / etc/yum.repos.d/CentOS-Base.repo / etc/yum.repos.d/CentOS-Base.repo.old

2 create a new repo file vi / etc/yum.repos.d/CentOS-Base.repo

Quote

# CentOS-Base.repo # # This file uses a new mirrorlist system developed by Lance Davis for CentOS. # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # If the mirrorlist= does not work for you, as a fall back you can try the # remarked out baseurl= line instead. # # [base] name=CentOS-5.0-Base baseurl= http://mirror.be10.com/centos/5/os/$basearch/ gpgcheck=1 gpgkey= http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5#released updates [update] name=CentOS-5.0-Updates baseurl= http://mirror.be10.com/centos/5/updates/$basearch/ gpgcheck=1 gpgkey= http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5#packages used/produced in the build But not released [addons] name=CentOS-5.0-Addons baseurl= http://mirror.be10.com/centos/5/addons/$basearch/ gpgcheck=1 gpgkey= http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 # additional packages that may be useful [extras] name=CentOS-5.0-Extras baseurl= http://mirror.be10.com/centos/5/extras/$basearch/ gpgcheck=1 gpgkey= http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5#additional packages That extend functionality of existing packages [centosplus] name=CentOS-5.0-Plus baseurl= http://mirror.be10.com/centos/5/centosplus/$basearch/ gpgcheck=1 enabled=0 gpgkey= http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5#contrib-packages by Centos Users [contrib] name=CentOS-5.0-Contrib baseurl= http://mirror.be10.com/centos/5/contrib/$basearch/ gpgcheck=1 enabled=0 gpgkey= http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS- 5 # packages in testing [testing] name=CentOS-5.0-Testing baseurl= http://mirror.be10.com/centos/5.0/testing/$basearch/ gpgcheck=1 enabled=0 gpgkey= http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 rpm-- import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 [root@localhost yum.repos.d] # yum upgrade above is the record file of how to do CentOS yum image speed test shared by Xiaobian. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report