1. 程式人生 > >CentOS7 修改yum源為阿裏雲

CentOS7 修改yum源為阿裏雲

mirror get lean com http ase log rep aliyun

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一步到位的

CentOS7 修改yum源為阿裏雲