CentOS6更换yum源
1.首先备份原来的cent os官方yum源
cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
2.获取阿里的yum源覆盖本地官方yum源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
3.清理yum缓存,并生成新的缓存
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