Centos7 modifies yum source to Ali source (big data preparatory course 02q2)
# # make sure you can access the Internet. I don't know how to check big data matriculation 02o1.
(1)。 Install wget softwar
Yum install-y wget
Complete is displayed at the end of the installation, indicating that the installation is successful.
(2)。 View the Yum source information:
Yum repolist
At present, yum connects to foreign websites, ordinary (fq seems to be very strict now) download restrictions and speed is very much! Very! Very slow!
(3)。 Enter the installation directory
Cd / etc/yum.repos.d
(4)。 Back up old configuration files
Mv CentOS-Base.repo CentOS-Base.repo.bak
(5)。 Download the file of the Ali source (install the base reop source)
Wget-O / etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/Centos-7.repo
(6)。 Clean the cache
Yum clean all
(7)。 Redeploy
Yum makecache
(8)。 View the Yum source information again
Yum repolist
Successfully deployed, the warehouse was changed to Aliyun.