CentOS builds Yum source server through http

Source: Internet
Author: User
& #65279; after multiple servers are installed on Centos6.5mini, some basic software packages need to be installed from the Internet yum, which is time-consuming and traffic-consuming. You can build a YUM server on the LAN to solve this problem. Steps are as follows: server-side installation configuration: 1. Upload The CentOS-6.5-x86_64-bin-DVD1.iso image file to a server

After CentOS mini is installed on multiple servers, you need to install some basic software packages from the Internet yum, which is time-consuming and traffic-consuming. You can build a YUM server on the LAN to solve this problem. The procedure is as follows:

The server installation configuration is as follows:

1. Upload The CentOS-6.5-x86_64-bin-DVD1.iso image file to a server

  [Root @ localhost data] # ll/home/data/CentOS-6.5-x86_64-bin-DVD1.iso-rwxr -- r -- 1 nobody 4467982336 Feb 28 0/ home/data/CentOS-6.5-x86_64-bin-DVD1.iso

2. mount the image, install creatrepo, and generate the repodata directory.

  Mount-o loop CentOS-6.5-x86_64-bin-DVD1.iso/mnt/cp-R/mnt/Packages/home/data/Centos/yum install createrepo-ycd/home/data/createrepo Centos/[root @ localhost Centos] # lltotal 276dr-xr-xr-x 2 root 278528 Apr 21 Packagesdrwxr-xr-x 2 root 4096 Apr 21 repodata

3. install httpd server

  Yum install httpd-yvi + 292/etc/httpd/conf/httpd. conf

Change/var/www/html to/home/data

  /Etc/init. d/httpd start

4. configure the firewall and disable selinux,

  Iptables-a input-p tcp -- dport 80-j ACCEPTsetenforce 0

The client configuration is changed as follows: ip address is changed to sever ip address

  Cat>/etc/yum. repos. d/CentOS-Base.repo <

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.