linux然后喝用heartbeat实现双机热备?
linux然后喝用heartbeat实现双机热备?
一:安装两个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。
问:同事ip:10.101.107.28 我的IP:10.101.104.23我们在...
答:你们公司是WINDOWS域环境吗,如果是的话,你在网上邻居里应该能看到对方的主机。让她把文件夹共享出来就可以。 如果不是WINDOWS域,那得看你们是不是在一个...详情>>
问:数据结构顺序表的建立,可定义顺序表 #define maxnum elemtyp...
答:打开VC ,然后点击新建,出来界面之后选择Win32 Console Application并输入工程的名称和选择项目的位置,然后出现“一个空工程”,在点击“...详情>>