redhat6.2 x86_64 heartbeat的yum源

简介:

redhat6.2 x86_64  heartbeat的yum源



EPEL=Extra Packages for Enterprise Linux

1.============

   vi /etc/yum.repo.conf/cdrom.repo

   [cdrom]

   name=cdrom

   baseurl=file:///mnt

   enabled=1

   gpgcheck=0

   [LB]

   name=LB

   baseurl=file:///mnt/LoadBalancer

   enable=1

   gpgcheck=0

   [HA]

   name=HA

   baseurl=file:///mnt/HighAvailability

   enable=1

   gpgcheck=0


2.=========

   wget ftp://mirror.switch.ch/pool/1/mirror/scientificlinux/6rolling/x86_64/os/Packages/epel-release-6-5.noarch.rpm


3.=========

   yum clean all

   yum install heartbeat


4.=========

   finish install


5.===========

   heartbeat 3.0.4 配置文件

1>cp /usr/share/doc/heartbeat-3.0.4/authkeys ha.cf haresources /etc/ha.d/

配置ha.cf

logfile    /var/log/ha-log

logfacility    local0

keepalive 2

deadtime 10

warntime 5

initdead 120

udpport    694

bcast    eth0

auto_failback on

node    lv1
   node    lv2

ping 192.168.182.2  #网关

ping_group group1 192.168.182.130 192.168.182.129

respawn hacluster /usr/lib64/heartbeat/ipfail


配置 authkeys

auth 1
   1 crc
   #2 sha1 HI!
   #3 md5 Hello!

配置haresources

lv1    IPaddr::192.168.182.200/32/eth0:0 httpd

2>将上面3个配置文件scp到lv2

chmod 600 authkeys 
   scp ha.cf haresources authkeys root@lv2:/etc/ha.d/


6.==========

/etc/init.d/heartbeat start






本文转自 vfast_chenxy 51CTO博客,原文链接:http://blog.51cto.com/chenxy/1360800,如需转载请自行联系原作者
目录
相关文章
|
缓存 开发工具
RedHat8.4配置本地yum软件仓库(RHEL8.4)
RedHat8.4配置本地yum软件仓库(RHEL8.4)
2661 0
RedHat8.4配置本地yum软件仓库(RHEL8.4)
|
存储 缓存 Linux
Linux RedHat7.4更换阿里云yum源(RHEL7.4)
Linux RedHat7.4更换阿里云yum源(RHEL7.4)
6008 0
|
Linux 开发工具
Redhat7.x 修改阿里云yum源
redhat系统中,如果你想要更新yum仓库,它会提示让你注册才能更新,因为centos和redhat基本相同,所以我把yum这一套全换成centos的。
6421 1
|
7月前
|
安全 Linux 数据安全/隐私保护
Red Hat Enterprise Linux 9.6 (x86_64, aarch64) - 红帽企业 Linux (RHEL)
Red Hat Enterprise Linux 9.6 (x86_64, aarch64) - 红帽企业 Linux (RHEL)
946 36
Red Hat Enterprise Linux 9.6 (x86_64, aarch64) - 红帽企业 Linux (RHEL)
|
Linux
Centos/Redhat 本地yum源配置(Linux)
Centos/Redhat 本地yum源配置(Linux)
476 0
Centos/Redhat 本地yum源配置(Linux)
|
关系型数据库 MySQL Linux
RedHat7.4 Yum环境下搭建LAMP实现库站分离(部署wordpress博客)
RedHat7.4 Yum环境下搭建LAMP实现库站分离(部署wordpress博客)
309 0
RedHat7.4 Yum环境下搭建LAMP实现库站分离(部署wordpress博客)
|
缓存 Linux 开发工具
RedHat7.4配置yum软件仓库(RHEL7.4)
RedHat7.4配置yum软件仓库(RHEL7.4)
1078 0
RedHat7.4配置yum软件仓库(RHEL7.4)
|
缓存 Linux Shell
|
Linux
配置yum软件仓库(redhat 7.0)
第一步:切换到yum配置文件目录 执行:cd /etc/yum.repos.d/ 第二步:创建文件并进行编辑:vi rhel7.repo 写入如下内容:[rhel7] name=rhel7 ##名字随便命名 baseurl=file:///media/cdrom enabled=1 gpgch...
1691 0