mkdir /code/centos -p
yum install yum-utils -y
yumdownloader pcre-devel openssl-devel
yum install yum-utils -y
rpm -q createrepo
createrepo -v /code/centos6
[root@ansible centos6]# createrepo --update /code/centos6/
Spawning worker 0 with 2 pkgs
Workers Finished
Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Sqlite DBs complete
客户端配置
[root@web03 yum.repos.d]# curl -I 192.168.2.61
HTTP/1.1 200 OK
Server: nginx/1.12.2
Date: Tue, 08 Jan 2019 19:19:36 GMT
挂载光盘
root@ansible repodata]# mount /dev/cdrom /mnt
安装nfs
[root@ansible repodata]# yum -y install nfs-utils rpcbind