首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 操作系统 > Linux > CentOS终于有了中国镜像!
【标  题】:CentOS终于有了中国镜像!
【关键字】:CentOS
【来  源】:http://www.cublog.cn/u/22117/showart.php?id=256214

CentOS终于有了中国镜像!

对在中国的CentOS支持者们,一件好事情:CentOS终于有了在中国的镜像,分别设在上海、香港、福建。

活用这个资源的之一,就是通过yum高速更新系统。

在初始环境设置中,我们可以将yum作为一项常驻的服务自动更新系统,但默认的服务器是官方的站点,离中国用户比较远,速度不堪忍受。但修改yum相应配置文件就可以达到高速更新系统的目的,方法如下:

修改/etc/yum.repos.d/CentOS-Base.repo,将镜象站点地址改为在中国的景象站点地址。如下:
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
baseurl=http://mirror.vmmatrix.net/CentOS/$releasever/os/$basearch/
        http://mirror.be10.com/centos/$releasever/os/$basearch/
        http://centos.hostlink.com.hk/$releasever/os/$basearch/
        http://ftp.hostrino.com/pub/centos/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

#released updates
[update]
name=CentOS-$releasever - Updates
baseurl=http://mirror.vmmatrix.net/CentOS/$releasever/os/$basearch/
        http://mirror.be10.com/centos/$releasever/os/$basearch/
        http://centos.hostlink.com.hk/$releasever/os/$basearch/
        http://ftp.hostrino.com/pub/centos/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
baseurl=http://mirror.vmmatrix.net/CentOS/$releasever/os/$basearch/
        http://mirror.be10.com/centos/$releasever/os/$basearch/
        http://centos.hostlink.com.hk/$releasever/os/$basearch/
        http://ftp.hostrino.com/pub/centos/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=http://mirror.vmmatrix.net/CentOS/$releasever/os/$basearch/
        http://mirror.be10.com/centos/$releasever/os/$basearch/
        http://centos.hostlink.com.hk/$releasever/os/$basearch/
        http://ftp.hostrino.com/pub/centos/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4然后更新一次系统,并将yum设置为自启动,让其即时自动为系统更新。

# yum -y update

# chkconfig yum on

# /etc/rc.d/init.d/yum start

squid 2.6 + iptables 实现透明代理与DNS转发:【上一篇】
Redhat启动telnet服务的过程:【下一篇】
【相关文章】
  • CentOS4.x使用国内的YUM资源
  • centos3.8+iscsi+gfs
  • 用centos4自己的组件测试cacti监控,成功。
  • CentOS4.4下編譯kernel2.6.18.5筆記
  • CentOS安装 xfce 窗口管理器
  • Fedora中使用 yum 管理 CentOS RPM
  • oracle 9i on centos
  • (CentOS)iptables+squid透明代理+防火墙终极配置
  • CENTOS4配置JSP教程
  • 今天在CentOS4上安装好了Discuz!论坛程序
  • 【随机文章】
  • 菜鸟全面手动防毒终极方法(2)
  • COM编程入门(一)
  • 用ASP.NET构建完整E-mail发送系统 
  • c语言学习之二
  • 如何避免职业生涯规划的盲点?
  • linux的分区和格式化
  • 函数指针,函数变量
  • 整型变量的复习笔记
  • 用jws来创建web services
  • Windows系统再现三个危险级漏洞 可完全控制电脑
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 软讯网络 All Rigths Reserved.