濮阳杆衣贸易有限公司

主頁(yè) > 知識(shí)庫(kù) > 為CentOS系統(tǒng)設(shè)置網(wǎng)易下載源的方法

為CentOS系統(tǒng)設(shè)置網(wǎng)易下載源的方法

熱門(mén)標(biāo)簽:洛陽(yáng)外呼增值業(yè)務(wù)線(xiàn)路解決方案 400電話(huà)申請(qǐng)安裝 騰沖銷(xiāo)售外呼管理系統(tǒng)服務(wù) 臨沂語(yǔ)音電話(huà)機(jī)器人公司 北京地圖標(biāo)注平臺(tái)注冊(cè)入駐 用什么軟件做地圖標(biāo)注 電銷(xiāo)機(jī)器人自動(dòng)撥號(hào)信息 昆明crm外呼系統(tǒng)價(jià)格 長(zhǎng)沙呼叫中心外呼系統(tǒng)穩(wěn)定嗎

前些天,在不知道網(wǎng)站是因?yàn)镚FW被k的情況下,傻傻的重裝系統(tǒng),結(jié)果vps一樣不能連通。后經(jīng)vps提供商更換ip后一切正常,在這過(guò)程中,也有點(diǎn)收獲,發(fā)現(xiàn)centos修改成網(wǎng)易163的源居然還有這樣簡(jiǎn)單的方法,真后悔沒(méi)早點(diǎn)知道,我自己還去慢慢在vi下輸入網(wǎng)址,真是浪費(fèi)時(shí)間。下面就是最快速度的修改成網(wǎng)易163源的辦法。(網(wǎng)易鏡像的幫助文件,我當(dāng)時(shí)真沒(méi)看到,大家自己去看下吧),其實(shí)大家可以去安裝yum-fastestmirror,大家自行g(shù)oogle用法,我的設(shè)定之后,匹配的是清華的源,第一次用清華的源,好激動(dòng)呀。


復(fù)制代碼
代碼如下:
#mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup //先備份原來(lái)的設(shè)置,做什么修改之前都要有的習(xí)慣

CentOS-5


復(fù)制代碼
代碼如下:
# wget http://mirrors.163.com/.help/CentOS5-Base-163.repo -O /etc/yum.repos.d/CentOS-Base.repo
# yum makecache

CentOS-6


復(fù)制代碼
代碼如下:
# wget http://mirrors.163.com/.help/CentOS6-Base-163.repo -O /etc/yum.repos.d/CentOS-Base.repo
# yum makecache

centos5的源設(shè)置如下:


復(fù)制代碼
代碼如下:
/p> p># CentOS-Base.repo
#
# 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.
#
#/p> p>[base]
name=CentOS-$releasever - Base - 163.com
baseurl=http://mirrors.163.com/centos/$releasever/os/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releaseverarch=$basearchrepo=os
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5/p> p>#released updates
[updates]
name=CentOS-$releasever - Updates - 163.com
baseurl=http://mirrors.163.com/centos/$releasever/updates/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releaseverarch=$basearchrepo=updates
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5/p> p>#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons - 163.com
baseurl=http://mirrors.163.com/centos/$releasever/addons/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releaseverarch=$basearchrepo=addons
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5/p> p>#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras - 163.com
baseurl=http://mirrors.163.com/centos/$releasever/extras/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releaseverarch=$basearchrepo=extras
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5/p> p>#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus - 163.com
baseurl=http://mirrors.163.com/centos/$releasever/centosplus/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releaseverarch=$basearchrepo=centosplus
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5/p> p>#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib - 163.com
baseurl=http://mirrors.163.com/centos/$releasever/contrib/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releaseverarch=$basearchrepo=contrib
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5/p> p>

centos6的源設(shè)置如下:


復(fù)制代碼
代碼如下:
/p> p># CentOS-Base.repo
#
# 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.
#
#/p> p>[base]
name=CentOS-$releasever - Base - 163.com
baseurl=http://mirrors.163.com/centos/$releasever/os/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releaseverarch=$basearchrepo=os
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6/p> p>#released updates
[updates]
name=CentOS-$releasever - Updates - 163.com
baseurl=http://mirrors.163.com/centos/$releasever/updates/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releaseverarch=$basearchrepo=updates
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6/p> p>#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras - 163.com
baseurl=http://mirrors.163.com/centos/$releasever/extras/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releaseverarch=$basearchrepo=extras
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6/p> p>#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus - 163.com
baseurl=http://mirrors.163.com/centos/$releasever/centosplus/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releaseverarch=$basearchrepo=centosplus
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6/p> p>#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib - 163.com
baseurl=http://mirrors.163.com/centos/$releasever/contrib/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releaseverarch=$basearchrepo=contrib
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6/p> p>

標(biāo)簽:涼山 遼寧 南充 昌都 通化 濰坊 汕頭 三亞

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《為CentOS系統(tǒng)設(shè)置網(wǎng)易下載源的方法》,本文關(guān)鍵詞  為,CentOS,系統(tǒng),設(shè)置,網(wǎng)易,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問(wèn)題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《為CentOS系統(tǒng)設(shè)置網(wǎng)易下載源的方法》相關(guān)的同類(lèi)信息!
  • 本頁(yè)收集關(guān)于為CentOS系統(tǒng)設(shè)置網(wǎng)易下載源的方法的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    贵德县| 丹凤县| 鹤壁市| 广州市| 内乡县| 衡东县| 和政县| 巴塘县| 竹溪县| 固安县| 涪陵区| 乌拉特前旗| 阿克陶县| 绥德县| 新绛县| 井研县| 呼图壁县| 寿光市| 新宁县| 观塘区| 元氏县| 东乡县| 湛江市| 巴中市| 虞城县| 江门市| 新巴尔虎左旗| 湘乡市| 无棣县| 原阳县| 常熟市| 林甸县| 桐庐县| 仲巴县| 凭祥市| 辽源市| 镇巴县| 安吉县| 奉新县| 肥乡县| 三河市|