First, prepare the FTP server, please see my last blog http://iceblock.blog.51cto.com/6758400/1166892.
Prepare libmcrypt-2.5.7-5.e15.i386.rpm
php-mcrypt-5.1.6-5.e15.i386.rpm
Establish Yum Server
Cd/var/ftp/cdrom (access to the CD directory on the FTP server)
Service vsftpd Start (start vsftpd)
ll/var/ftp/cdrom/server/repodata/(several files in the server warehouse)
ll/var/ftp/cdrom/vt/repodata/(several files in VT warehouse)
A client that opens another Linux as a Yum server in the virtual machine
Building the Server Warehouse
Vim/etc/yum.repos/d/rhel-debuginfo.repo (edit Yum file)
[Rhel-server]
name=red Hat Enterprise Linux Server
Baseurl=ftp://192.168.126.30/cdrom/server (Modify BaseURL)
Gpgkey=ftp://192.168.126.30/cdrom/rpm-gpg-key-redha-release (Modify Gpgkey)
Construction of VT (virtualization) Warehouse
[RHEL-VT]
name=red Hat Enterprise Linux VT
BASEURL=FTP://192.168.126.30/CDROM/VT (Modify BaseURL)
Gpgkey=ftp://192.168.126.30/cdrom/rpm-gpg-key-redha-release (Modify Gpgkey)
Building a cluster (cluster) warehouse
[Rhel-cluster]
name=red Hat Enterprise Linux Cluster
Baseurl=ftp://192.168.126.30/cdrom/cluster (Modify BaseURL)
Gpgkey=ftp://192.168.126.30/cdrom/rpm-gpg-key-redha-release (Modify Gpgkey)
Building a Clusterstorage (storage) Warehouse
[Rhel-clusterstorage]
name=red Hat Enterprise Linux clusterstorage
Baseurl=ftp://192.168.126.30/cdrom/clusterstorage (Modify BaseURL)
Gpgkey=ftp://192.168.126.30/cdrom/rpm-gpg-key-redha-release (Modify Gpgkey)