更新yum源
cd /etc/yum.repos.d
备份一下原来的yum源
mv CentOS-Base.repo CentOS-Base.repo.bk
下载新的CentOS-Base.repo 到/etc/yum.repos.d/ 如下的源用一个就好,三条命令选其一
//更新为阿里云的源 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo //更新为163的源 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS6-Base-163.repo //更新为搜狐的源 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.sohu.com/help/CentOS-Base-sohu.repo
运行yum makecache生成缓存
yum clean all yum makecache
相关推荐
87901735 2020-08-19
ningningmingming 2020-07-26
VFCSDN 2020-07-05
87447007 2020-07-04
87447007 2020-06-26
flycappuccino 2020-09-27
yudiewenyuan 2020-06-09
wannagonna 2020-06-08
杨友山 2020-06-03
89284553 2020-05-26
lizhengfa 2020-05-02
xiemanR 2020-09-21
数据人 2020-10-26
张立军的架构之路 2020-09-28