[[email protected] yum.repos.d]# pwd/etc/yum.repos.d[[email Protected] yum.repos.d]# Lscentos-base.repo Centos-fasttrack.repo Centos-vault.repocentos-debuginfo.repo CentOS-Me Dia.repo[[email protected] yum.repos.d]# mv Centos-base.repo centos-base.repo.bk[[email protected] yum.repos.d]# wget http://mirrors.163.com/.help/CentOS6-Base-163.repo--2016-07-21 09:30:33--/http Mirrors.163.com/.help/centos6-base-163.reporesolving mirrors.163.com ... 123.58.173.186, 123.58.173.185Connecting to mirrors.163.com|123.58.173.186|:80 ... Connected. HTTP request sent, awaiting response ... oklength:2006 (2.0K) [application/octet-stream]saving to: "Centos6-base-163.repo" 100%[========================= =============>] 2,006--.-k/s in 0s 2016-07-21 09:30:34 (196 MB/s)-"Centos6-base-163.repo" saved [2006/2 006] After updating the Yum source, perform the following command to update the Yum configuration so that the operation takes effect immediately [[email protected] yum.repos.d]# yum makecache
CentOS Configuration Domestic Yum source