CentOS7 修改yum源为阿里云

1,登陆root帐号

2,cd /etc/yum.repo.d

3,mv CentOS-Base.repo CentOS-Base.repo.bak
4,wget http://mirrors.aliyun.com/repo/Centos-7.repo
5,mv Centos-7.repo CentOS-Base.repo
6, yum clean all
7, yum makecache
8,yum update

4~5步骤可以wget一步到位的

posted @ 2018-03-05 22:47  ianduin  阅读(9326)  评论(0编辑  收藏  举报