& #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
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 < |