centos 7 配置163的网络源

网络源地址:http://mirrors.163.com/.help/centos.htmlhtml

1.先把本地的源配置文件备份centos

mv/etc/yum.repos.d/CentOS-Base.repo  /etc/yum.repos.d/CentOS-Base.repo.backup缓存

2.下载对应的repo文件,放入/etc/yum.repos.d/目录下网络

wget http://mirrors.163.com/.help/CentOS7-Base-163.repohtm

运行如下命令生成缓存get

yum clean all配置

yum makecache (cashi 高速缓存)下载

相关文章
相关标签/搜索