Centos7 modify the source yum Ali source (Big Data Foundation 02_2)

## guaranteed on the Internet, I do not know how to view large data networking foundation 02_1


(1) Install the software wget

yum install -y wget

Finally, the installation is complete display Complete, represents a successful installation
Centos7 modify the source yum Ali source (Big Data Foundation 02_2)
(2) View yum source information:

     yum repolist

Yum is currently connected to foreign websites, ordinary (fq now looks like a very strict tube) and a multi-speed download limit very! very much! very slow!
Centos7 modify the source yum Ali source (Big Data Foundation 02_2)
(3) Access installation directory

  cd /etc/yum.repos.d 

Centos7 modify the source yum Ali source (Big Data Foundation 02_2)
(4) Backing up the old configuration files

  mv CentOS-Base.repo CentOS-Base.repo.bak

Centos7 modify the source yum Ali source (Big Data Foundation 02_2)
(5) Download the file Ali source (installed base reop source)

  wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/Centos-7.repo

Centos7 modify the source yum Ali source (Big Data Foundation 02_2)

(6) Clean up Cache

yum clean all

Centos7 modify the source yum Ali source (Big Data Foundation 02_2)

(7) Re-deployment

yum makecache

(8) again to view the yum source information

yum repolist

Deployment is successful, warehouses changed to Ali cloud
Centos7 modify the source yum Ali source (Big Data Foundation 02_2)

Guess you like

Origin blog.51cto.com/14497555/2429019