LAN rack a Yum source-http

Source: Internet
Author: User

When installing the CDH, this is a hurdle that doesn't go around.

Reference URL:

Http://www.21ops.com/linux/26465.html

Strangely enough, I did not execute the Creatrepo, directly using the CD mount.

Multiple servers after Centos6.5 mini installation, need to install some basic software packages, from the extranet Yum installation, very time consuming, also occupy traffic. Setting up a Yum server on a local area network can solve this problem. The steps are as follows:

The server-side installation is configured as follows:

1. Upload centos-6.5-x86_64-bin-dvd1.iso image file to a server

12 [[email protected] data]# ll /home/data/CentOS-6.5-x86_64-bin-DVD1.iso-rwxr--r-- 1 nobody nobody 4467982336 Feb 28 01:28 /home/data/CentOS-6.5-x86_64-bin-DVD1.iso

2. Mount the image, install the Creatrepo, and generate the Repodata directory

123456789 mount-o loop CentOS-6.5-x86_64-bin-DVD1.iso /mnt/cp -R /mnt/Packages/home/data/Centos/yum installcreaterepo -ycd/home/data/createrepo  Centos/[[email protected] Centos]# lltotal 276dr-xr-xr-x 2 root root 278528 Apr 21 14:43 Packagesdrwxr-xr-x 2 root root   4096 Apr 21 14:49 repodata

3. Install HTTPD server

12 yum installhttpd -yvi+292 /etc/httpd/conf/httpd.conf

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

1 /etc/init.d/httpdstart

4, configure the firewall, turn off SELinux,

12 iptables -A INPUT -p tcp  --dport 80 -j ACCEPTsetenforce 0

The client modification configuration is as follows: IP swap for sever IP

1234567891011121314 cat >>/etc/yum.repos.d/CentOS-Base.repo<<EOF[base]name=myiso repobaseurl=http://192.168.1.23/Centosgpgcheck=0enabled=1[updates]name=myiso updatebaseurl=http://192.168.1.23/Centosgpgcheck=0enabled=1EOFyum clean allyum installvim

[c6-Media]  name=centos-$releasever- media  baseurl=http://192.168.11.89/ centos_media/  gpgcheck=0  enabled=1  = jdk*
[Myrepo]  name=Myrepo  baseurl=http://192.168.11.89/CM5/REDHAT/6 /x86_64/cm/5/  enabled=1  gpgcheck=0  

LAN rack a Yum source-http

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.