1, the local Yum warehouse installation configuration
Two different ways:
1. Each machine is equipped with a Yum repository on a local file system file:///packege/path/
2. Configure a local file system Yum repository with one node (server-base) inside the LAN and publish it to the Web server.
Other nodes can be http://server-base/pagekege/path/through the
Production process: First select a machine servername, mount a system CD to the local directory/mnt/cdrom, and then start a httpd server,/mnt/cdrom Soft connection to httpd server's/var/www/html directory (cd/var/ www/html; Ln-s/mnt/cdrom./centos)
Then test through Web Access: Http://servername/centos See the contents of the disc
Now: The network version of the Yum Private warehouse has been established
All that's left is to configure this HTTP address in the repo configuration file for each Yum client.
Regardless of the configuration, you need to first hang the disc in the local file directory
Mount-t Iso9660/dev/cdrom/mnt/cdrom
To avoid having to mount manually after each reboot, you can mount it automatically by adding a single row mount configuration to the/etc/fstab
Vi/etc/fstab
/dev/cdrom/mnt/cdrom iso9660 Defaults 0 0
The installation configuration of the local Yum repository is used by an Apache as a private repository for use in LAN