Implementation principle: TFTP + DHCP + NFS + VSFTPD broadcast using TFTP, enable the client to obtain the corresponding installation information. use DHCP to obtain network address information. Use the TFTP file required during NFS shared installation and use FTP to download the CD information during installation. Implementation steps: (1 ): install YUM to simplify the installation of the RPM package during server setup (1) mount the CD and install ftp in the directory, [root @ localhostServer] # rpm-iv
Implementation principle: TFTP + DHCP + NFS + VSFTPD
Use TFTP to broadcast the client to obtain the corresponding installation information
Use DHCP to obtain network address information
Use NFS to share the TFTP files required during installation
Use FTP to download the CD information during installation
Implementation steps:
(1): Install YUM to simplify the RPM package installation during Server SETUP
(1) mount the CD and go to the directory to install ftp,
[Root @ localhost Server] # rpm-ivh vsftpd-2.0.5-12.el5.i386.rpm
(2) copy the content of the CD to/var/ftp/pub/
[Root @ localhost RHEL_5.2 i386 DVD] # cp-R/media/RHEL_5.2 \ i386 \ DVD/*/var/ftp/pub/
(3) installation kits yum and createrepo
[Root @ localhost Server] # rpm-ivh yum-3.2.8-9.el5.noarch.rpm
[Root @ localhost Server] # rpm-ivh createrepo-0.4.11-3.el5.noarch.rpm
(4) Prepare and solve the dependency problem
[Root @ localhost Server] # createrepo-g/var/ftp/pub/Server/repodata/comps-rhel5-server-core.xml/var/ftp/pub/Server/
[Root @ localhost Server] # createrepo-g/var/ftp/pub/VT/repodata/comps-rhel5-vt.xml/var/ftp/pub/VT/
[Root @ localhost Server] # createrepo-g/var/ftp/pub/Cluster/repodata/comps-rhel5-cluster.xml/var/ftp/pub/Cluster
[Root @ localhost Server] # createrepo-g/var/ftp/pub/ClusterStorage/repodata/comps-rhel5-cluster.xml/var/ftp/pub/ClusterStorage/
(4) configure the yum Library
[Root @ localhost Server] # cp-p/etc/yum. repos. d/rhel-debuginfo.repo/etc/yum. repos. d/base. repo
[Root @ localhost Server] # vim/etc/yum. repos. d/base. repo
[Server]
Name = Red Hat Enterprise Linux-server
Baseurl = ftp: // 192.168.1.254/pub/Server
Enabled = 1
Gpgcheck = 1
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-RedHat-release
[Vt]
Name = Red Hat Enterprise Linux-vt
Baseurl = ftp: // 192.168.1.254/pub/VT
Enabled = 1
Gpgcheck = 1
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[Cluster]
Name = Red Hat Enterprise Linux-cluster
Baseurl = ftp: // 192.168.1.254/pub/Cluster
Enabled = 1
Gpgcheck = 1
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[Clusterstorage]
Name = Red Hat Enterprise Linux-clusterStorage
Baseurl = ftp: // 192.168.1.254/pub/ClusterStorage
Enabled = 1
Gpgcheck = 1
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
~ Now yum installation is complete. Www.linuxidc.com