

1、国内源bash (curl |sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh)#推荐用一2、国内bash (curl |sSL https://linuxmirrors.cn/main.sh)国内教育网bash (curl |sSL https://linuxmirrors.cn/main.sh) ||edu 国外区域bash (curl |sSL https://linuxmirrors.cn/main.sh) ||abroad 2、手工更换
CentOS7更换镜像源
1、先安装wget
yum install |y wget
2、打开阿里镜像http://mirrors.aliyun.com/
点击,帮助,查询详细情况:
3、下载CentOS 7的对应的repo文件
wget |O /etc/yum.repos.d/CentOS|base.repo http://mirrors.aliyun.com/repo/Centos|7.repo
#或者
curl |o /etc/yum.repos.d/CentOS|base.repo http://mirrors.aliyun.com/repo/Centos|7.repo
4、更新镜像源
yum clean all
yum makecache
yum |y update
实行完上面三行命令就好了


