打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
CentOS下用于安装heartbeat/ipvsadm/ldirectord/corosync/pacemaker及相关软件的yum源
 在安装heartbeat、corosync以及pacemaker这些Linux-HA软件时,没有一个可靠的yum源对于安装者简直就是一场噩梦,光是那一大串rpm包就不知道到哪儿下载去,就算是费了九牛二虎之力把所有需要的包都找到了,版本对不对?操作系统支不支持?每个rpm包又需要哪些依赖?想想就奔溃了!本博主之前刚好配置过一些软件的HA,这里不妨把用到的yum源分享出来,供刚接触Linux-HA软件的人参考。该yum源的使用也很简单,将其拷贝到/etc/yum.repos.d/下面,替换之前的Cent-Base.repo。
# CentOS-Base.repo
#
# The mirror system uses theconnecting IP address of the client and the
# update status of each mirror topick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually pickingother mirrors.
#
# If the mirrorlist= does not workfor you, as a fall back you can try the 
# remarked out baseurl= lineinstead.
#
#

[base]
name=CentOS-5-Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever5&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=http://ftp.sjtu.edu.cn/centos/5/os/$basearch/
gpgcheck=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#released updates
[update]
name=CentOS-5-Updates
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=updates
baseurl=http://ftp.sjtu.edu.cn/centos/5/updates/$basearch/
gpgcheck=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#packages used/produced in the buildbut not released
[addons]
name=CentOS-5-Addons
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=addons
baseurl=http://ftp.sjtu.edu.cn/centos/5/addons/$basearch/
gpgcheck=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#additional packages that may beuseful
[extras]
name=CentOS-5-Extras
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=extras
baseurl=http://ftp.sjtu.edu.cn/centos/5/extras/$basearch/
gpgcheck=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#additional packages that extendfunctionality of existing packages
[centosplus]
name=CentOS-5-Plus
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=centosplus
baseurl=http://ftp.sjtu.edu.cn/centos/5/centosplus/$basearch/
gpgcheck=0
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#contrib - packages by CentosUsers
[contrib]
name=CentOS-5-Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=contrib
baseurl=http://ftp.sjtu.edu.cn/centos/5/contrib/$basearch/
gpgcheck=0
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
# vi dag.repo
[dag]
name=Dag RPM Repository forRHEL5
baseurl=http://ftp.riken.jp/Linux/dag/redhat/el5/en/$basearch/dag/
enabled=1
gpgcheck=0
gpgkey=http://ftp.riken.jp/Linux/dag/packages/RPM-GPG-KEY.dag.txt
#以上为基本库,用于安装一些通用软件,如果觉得自己的基本库无需替换,可忽略以上内容
[clusterlabs]
name=High Availability/Clusteringserver technologies (epel-5)
baseurl=http://www.clusterlabs.org/rpm/epel-5
type=rpm-md
gpgcheck=0
enabled=1

[kbs-extras-testing]
name=KBS Extras Testing
baseurl=http://centos.karan.org/el$releasever/extras/testing/$basearch/RPMS/
enabled=1
gpgcheck=0
gpgkey=http://centos.karan.org/RPM-GPG-KEY-karan.org.txt
#以上为Linux-HA软件库,专门用于安装heartbeat、corosync以及pacemaker等软件
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Redhat Linux RHEL5配置CentOS YUM更新源
更改CentOS镜像为国内镜像
RHEL/CentOS 6.x使用EPEL6与remi的yum源安装MySQL 5.5.x
CentOS yum源设定使用方法的整理
CentOS系统更换yum源(repomd.xml not found解决方案)
CentOS搭建本地光盘YUM源
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服