更改yum源配置
1.mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2.wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3. yum makecache
本文详细介绍如何将CentOS的默认yum源更换为阿里云镜像源,通过三步操作即可完成配置更新并生成缓存,有效提升软件包下载速度。
更改yum源配置
1.mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2.wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3. yum makecache
1052
1045

被折叠的 条评论
为什么被折叠?