1: yum install wget -y
2: cd /etc/yum.repo.d/
3: wget http://mirrors.aliyun.com/repo/Centos-7.repo
4: cp CentOs-Base.repo CentOs-Base.repo.bak
5: mv Centos-7.repo CentOs-Base.repo
6: y
7: yum clean all
8: yum makecache
9: yum update -y
1: yum install wget -y
2: cd /etc/yum.repo.d/
3: wget http://mirrors.aliyun.com/repo/Centos-7.repo
4: cp CentOs-Base.repo CentOs-Base.repo.bak
5: mv Centos-7.repo CentOs-Base.repo
6: y
7: yum clean all
8: yum makecache
9: yum update -y