1、新建目录
mkdir /var/ftp/pub/rhel73/
mkdir /var/ftp/pub/rhel74/
2、完成iso文件挂载
mount -o loop /root/rhel-server-7.4-x86_64-dvd-KS.iso /var/ftp/pub/redhat74
mount -o loop /root/rhel-server-7.3-x86_64-dvd-KS.iso /var/ftp/pub/redhat73
3、安装vsftpd
rpm -ivh vsftpd-3.0.2-21.el7.x86_64.rpm
4、创建依赖关系数据库
createrepo -g /var/ftp/pub/redhat73/repodata/repomd.xml /var/ftp/pub/rhel73/
createrepo -g /var/ftp/pub/redhat74/repodata/repomd.xml /var/ftp/pub/rhel74/
5、客户端配置repo源
如下 :
[rhel7]
name=rhel7
baseurl=ftp://103.20.1.188/pub/rhel73/
enabled=1
gpgcheck=0