6、给CentOS配置国内源

1、进入yum.repos目录

cd /etc/yum.repos.d/ 

2、备份一下原有的源,以备出错了可以更改回来

mv CentOS-Base.repo CentOS-Base.repo.back 

3、下载阿里的yum源

wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo --下载CentOS-7源

4、 执行yum源更新命令

yum clean all 
yum makecache 
yum update
posted @ 2019-05-14 16:20  巴克老队长  阅读(310)  评论(0)    收藏  举报