The installation configuration of the local Yum repository is used by an Apache as a private repository for use in LAN

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.