yum厂库配置:
1、安装HTTP服务
yum -y install httpd
2、挂载镜像文件
mkdir -p /var/www/html/Centos/7/
mount /dev/sr0 /var/www/html/Centos/7/
客户端配置:
[Base]
name=Centos-base
baseurl=http://192.168.222.120/Centos/7/
# https://mirrors.huaweicloud.com/
gpgcheck=1
enabled=1
gpgkey=http://192.168.222.120/Centos/7/RPM-GPG-KEY-CentOS-7