网络YUM源搭建
1、 CentOS-Base.repo
[base]
name=CentOS-6
failovermethod=priority
baseurl=https://vault.centos.org/6.9/os/x86_64/ Centos官网镜像
url=http://mirrors.sohu.com/centos/6.10/os/x86_64/ 搜狐镜像
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
2、epel
[epel]
name=sohu-epel
baseurl=http://mirrors.sohu.com/fedora-epel/6/$basearch
failovermethod=priority
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
本地YUM源
[base]
name=Centos7
baseurl=///挂载镜像的路径
enabled=1
gpgcheck=0
新建目录挂载镜像
配置开机自动挂载