First, create a site. Both httpd and nginx are supported. The root directory of my site points to "/var/www/centos /"
Download the source and synchronize the source
Rsync-AVRT rsync: // mirrors.ustc.edu.cn/centos/6.5/updates/x86_64/ opt/centos/other/updates/
Rsync-AVRT rsync: // mirrors.ustc.edu.cn/centos/6.5/extras/x86_64// opt/centos/other/extras/
Rsync-AVRT rsync: // mirrors.ustc.edu.cn/centos/6.5/centosplus/x86_64// opt/centos/other/centosplus/
Rsync-AVRT rsync: // mirrors.ustc.edu.cn/centos/6.5/contrib/x86_64// opt/centos/other/contrib/
I have the latest source (updated on November 18,) for centos 6 64-bit
Replacing the CentOS-Base.repo of the Client
[Base]
Name = CentOS-6-base-hnkj
Baseurl = http: // site IP Address/
# Items list = http://mirrorlist.centos.org /? Release = 6 & arch = $ basearch & repo = OS
Gpgcheck = 1
Gpgkey = http: // site IP/RPM-GPG-KEY-CentOS-6
# Released updates
[Updates]
CentOS-6-Updates-hnkj
Baseurl = http: // site IP/other/updates/
# Items list = http://mirrorlist.centos.org /? Release = 6 & arch = $ basearch & repo = updates
Gpgcheck = 1
Gpgkey = http: // site IP/RPM-GPG-KEY-CentOS-6
# Additional packages that may be useful
[Extras]
CentOS-6-extras-hnkj
Baseurl = http: // site IP/other/extras/
# Items list = http://mirrorlist.centos.org /? Release = 6 & arch = $ basearch & repo = extras
Gpgcheck = 1
Gpgkey = http: // site IP/RPM-GPG-KEY-CentOS-6
# Additional packages that extend functionality of existing packages
[Centosplus]
CentOS-6-plus-hnkj
Baseurl = http: // site IP/other/centosplus/
# Items list = http://mirrorlist.centos.org /? Release = 6 & arch = $ basearch & repo = centosplus
Gpgcheck = 1
Enabled = 0
Gpgkey = http: // site IP/RPM-GPG-KEY-CentOS-6
# Contrib-packages by centos users
[Contrib]
CentOS-6-contrib-hnkj
Baseurl = http: // site IP/other/contrib/
# Items list = http://mirrorlist.centos.org /? Release = 6 & arch = $ basearch & repo = contrib
Gpgcheck = 1
Enabled = 0
Gpgkey = http: // site IP/RPM-GPG-KEY-CentOS-6
Build your own local source server in centos