如何進行CentOSyum鏡像速度測試記錄文件

這期內(nèi)容當中小編將會給大家?guī)碛嘘P如何進行CentOS yum鏡像速度測試記錄文件,文章內(nèi)容豐富且以專業(yè)的角度為大家分析和敘述,閱讀完這篇文章希望大家可以有所收獲。

在明山等地區(qū),都構建了全面的區(qū)域性戰(zhàn)略布局,加強發(fā)展的系統(tǒng)性、市場前瞻性、產(chǎn)品創(chuàng)新能力,以專注、極致的服務理念,為客戶提供成都網(wǎng)站設計、做網(wǎng)站 網(wǎng)站設計制作定制開發(fā),公司網(wǎng)站建設,企業(yè)網(wǎng)站建設,成都品牌網(wǎng)站建設,成都全網(wǎng)營銷,外貿(mào)網(wǎng)站制作,明山網(wǎng)站建設費用合理。

CentOS yum安裝方式在有網(wǎng)絡環(huán)境的時候非常方便,選擇一個比較快的CentOS yum源是非常有意義的。

(1)自動選擇最快的源

由于CentOS yum中有的mirror速度是非常慢的,如果yum選擇了這個mirror,這個時候CentOS yum就會非常慢,對此,可以下載fastestmirror插件,它會自動選擇最快的

mirror:  yum install yum-fastestmirror -y  fastestmirror配置文件:(一般不用動)  /etc/yum/pluginconf.d/fastestmirror.conf

你的CentOS yum鏡像的速度測試記錄文件:/var/cache/yum/timedhosts.txt

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

2  創(chuàng)建新的repo文件vi /etc/yum.repos.d/CentOS-Base.repo

引用

# 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

上述就是小編為大家分享的如何進行CentOS yum鏡像速度測試記錄文件了,如果剛好有類似的疑惑,不妨參照上述分析進行理解。如果想知道更多相關知識,歡迎關注創(chuàng)新互聯(lián)行業(yè)資訊頻道。

文章名稱:如何進行CentOSyum鏡像速度測試記錄文件
瀏覽地址:http://muchs.cn/article34/ispsse.html

成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供Google、云服務器、全網(wǎng)營銷推廣、網(wǎng)站建設、動態(tài)網(wǎng)站、網(wǎng)站策劃

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

成都做網(wǎng)站