There are some machines in the production environment are not allowed to have outside the network leadership requirements to build the intranet CentOS source involves IP as follows: 10.1.1.1 (server) 10.1.1.2 (client) is now available on the server Centos-6.5-x86_64-bin-dvd1.iso CAT/ Etc/debian_version 5.0.2 Server (10.1.1.1) 1, create ISO mount directory mkdir/opt/iso/centos-p2, Mount Isomount-o loop/opt/isos/ CENTOS-6.5-X86_64-BIN-DVD1.ISO/OPT/ISO/CENTOS/3, viewing Mount/opt/isos/centos-6.5-x86_64-bin-dvd1.isoiso9660 4.2G 4.2G 0 1 00%/opt/iso/centos4, install apache2 (other FTP can also, here go apache2) apt-get-y install APACHE2-MPM-PREFORK5, copy all the ISO directory under the site cd/opt/ ISO/CENTOS/CP-A */var/www/centos/Client (10.1.1.2) 1, the original Yum warehouse under the file backup under Cd/etc/yum.repos.d/find./-name "*.repo" |xargs-i MV {} {}.BAK2, add custom yum source Cat Local.repo [http]name=httpbaseurl=http://10.1.1.1/centos/enable=1gpgcheck=0
This article is from the "7928217" blog, please be sure to keep this source http://7938217.blog.51cto.com/7928217/1649592
Built-in CentOS source under Debian (apache2)