爱问知识人 爱问教育 医院库

linux然后喝用heartbeat实现双机热备?

首页

linux然后喝用heartbeat实现双机热备?

linux然后喝用heartbeat实现双机热备?

提交回答

全部答案

    2017-07-27 22:05:35
  •   一:安装两个linux(rh4。5-32位)系统并关闭防火墙,selinux设置为disable,每台电脑需要配置两块网卡。两台电脑分别为node1和node2
    node1的ip地址分别为:
    eth0:192。168。0。65
    eth1:10。
      0。0。3 (心跳地址) node2的ip地址分别为: eth0:192。168。0。66 eth1:10。0。0。4 (心跳地址) 192。168。0。30(虚拟ip地址) 注意:保证两台电脑每块网卡能够ping通。 二:保证两台电脑以下文件必须相同 /etc/hosts /etc/host。
      conf /etc/resolv。conf #vi /etc/hosts node1的hosts内容如下: ip地址 域名 机器名 192。168。0。65 node1。example。com node1 10。0。0。3 node1 192。
      168。0。66 node2。example。com node2 10。0。0。4 node2 (保证机器名和参数uname -n输出一致) #vi /etc/host。conf order hosts,bind #vi /etc/resolv。
      conf nameserver 202。96。209。133(DNS地址如果为空可以根据当地dns输入) node2的hosts内容如下: ip地址 域名 机器名 192。168。0。65 node1。example。com node1 10。
      0。0。3 node1 192。168。0。66 node2。example。com node2 10。0。0。4 node2 (保证机器名和参数uname -n输出一致) #vi /etc/host。conf order hosts,bind #vi /etc/resolv。
      conf nameserver 202。96。209。133(DNS地址如果为空可以根据当地dns输入) 三:在两台电脑上分别安装heartbeat软件包。 按如下顺序 1:heartbeat-gui-2。1。2-2。el4。centos。
      i386。rpm 2:heartbeat-pils-2。1。2-2。el4。centos。i386。rpm 3:heartbeat-stonith-2。1。2-2。el4。centos。i386。rpm 4:heartbeat-2。1。
      2-2。el4。centos。i386。rpm。

    z***

    2017-07-27 22:05:35

类似问题

换一换
  • 系统软件 相关知识

  • 电脑网络技术
  • 电脑网络

相关推荐

正在加载...
最新问答 推荐信息 热门专题 热点推荐
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200

热点检索

  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
返回
顶部
帮助 意见
反馈

确定举报此问题

举报原因(必选):