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
install
createrepo -y
cd
/home/data/
createrepo Centos/
[[email protected] Centos]
# ll
total 276
dr-xr-xr-x 2 root root 278528 Apr 21 14:43 Packages
drwxr-xr-x 2 root root 4096 Apr 21 14:49 repodata
|
3. Install HTTPD server
12 |
yum install httpd -y vi +292 /etc/httpd/conf/httpd .conf |
Change/var/www/html to/home/data
4, configure the firewall, turn off SELinux,
12 |
iptables -A INPUT -p tcp --dport 80 -j ACCEPT setenforce 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 repo
baseurl=http:
//192
.168.1.23
/Centos
gpgcheck=0
enabled=1
[updates]
name=myiso update
baseurl=http:
//192
.168.1.23
/Centos
gpgcheck=0
enabled=1
EOF
yum clean all
yum
install
vim
|
[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