CentOS7更换镜像下载源
1)先安装wget执行命令 yum install -y wget2) 查询国内镜像源打开阿里镜像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://mirro.