centos 建立自己的本地原始伺服器

來源:互聯網
上載者:User

標籤:搭建centos源

首先建立網站,httpd或nginx都可,我的網站根目錄指向“/var/www/centos/”


然後下載源,並同步源

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/

我這有一份最新的源(2014-7-18號更新)適用於centos 6 64位


替換用戶端的CentOS-Base.repo

[base]

name=CentOS-6 - Base - hnkj

baseurl=http://網站IP/

#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=os

gpgcheck=1

gpgkey=http://網站IP/RPM-GPG-KEY-CentOS-6


#released updates 

[updates]

name=CentOS-6 - Updates - hnkj

baseurl=http://網站IP/other/updates/

#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=updates

gpgcheck=1

gpgkey=http://網站IP/RPM-GPG-KEY-CentOS-6


#additional packages that may be useful

[extras]

name=CentOS-6 - Extras - hnkj

baseurl=http://網站IP/other/extras/

#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=extras

gpgcheck=1

gpgkey=http://網站IP/RPM-GPG-KEY-CentOS-6


#additional packages that extend functionality of existing packages

[centosplus]

name=CentOS-6 - Plus - hnkj

baseurl=http://網站IP/other/centosplus/

#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=centosplus

gpgcheck=1

enabled=0

gpgkey=http://網站IP/RPM-GPG-KEY-CentOS-6


#contrib - packages by Centos Users

[contrib]

name=CentOS-6 - Contrib - hnkj

baseurl=http://網站IP/other/contrib/

#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=contrib

gpgcheck=1

enabled=0

gpgkey=http://網站IP/RPM-GPG-KEY-CentOS-6


centos 建立自己的本地原始伺服器

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.