1, install wget , execute the command: " yum -y install wget ."
2, open Ali mirror: https://developer.aliyun.com/mirror/
3. Download the new CentOS-Base.repo to /etc/yum.repos.d/ .
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo or -o curl /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo |
4, the update image source.
# Clear the cache |