Use heartbeat + monit to implement master-slave dual-Hot Backup System
Vcyoy6vN + L + otcRJQk21xLf + kernel/qtS0tcRIQcjtvP69 + NDQsr/kernel + NDQ0MTM + kernel/kernel + Kernel Examples/examples + 1xNfK1LS78tXft/examples + LPMoaLOxLz + examples/izTw9PaVW5peMa9zKihoyDL/L/samples/e1xLPM0PIszNjKucrKus + 0 psDtxMfQq Release + release/b7dus3TptPDt/release/s7xxve85LXEyv2 + release + tc/release/RFJCRNXi1ta + tc/release + L + release + ginkz + release + LPMo7rK/release + 3c2o0MW3/release Sj9uPa9 + LPM1/azyWxpbnV4tcS3/large + wb249rf + large/qNPDwLTN4rK/large + LzssuKhozwvcD4KPHA + large + RXRoMaO6SVCjq Authorization + authorization + tv6horCy17Btb25pdDwvcD4KPHA + authorization/2Lf + zvG9 + LPMo6y6zWhlYXJ0YmVhdL3hu S/KudPDoaPG5Mq10rK/ydLUssnTw8bky/keys + keys/t9ajqcbk1/keys + cores + xuNPDt/7O8cb3yc + 1xNOm08O3/keys + 205 RSio6zTptPDt/7O8brNyv2 + 3dTawb3MqLf + kernel/ydLU1eLR + df2o6k8L3A + kernel + ICBzdG9wKTwvcD4KPHA + kernel + Kernel Gvjjerbru1pt1_vcd4kpha + primary + ICAgIGVsc2U8L3A + primary + CjxwPiAgICBmaTwvcD4KPHA + primary + zvG9 + primary + ICAgICBzZXJ2aWNlI Release + release/V4re9w + a1xNfKwc + xyL3PtuC/ydLUss6/release/2LXEvfizzKOs1 + release/release + I9Do0qq84L/YtcS9 + LPMxeTWw ZwvcD4KPHA + signature + Signature Response + response Signature + CjxwPiA8L3A + signature + CjxwPiAgICAgc3RhcnQgcHJvZ3JhbSA9ICZxd W90oy9ldgmvaw5pdc5kl1jzu2vydmvyc3rhcnqmcxvvddsgc1_vcd4kpha + signature + CjxwPiA8L3A + signature + Signature Response + response 3A + signature + CjxwPiM8L3A + CjxwPiAgIGluY2x1ZGUgL2V0Yy9tb25pdC9jb25mLmQvKjwvcD4KPHA + Iy48L3A + cjxwpqgtoa2hragtoa2 TwvcD4KPHA + Asn + CjxwPiA8aW1nIHNyYz0 = "http://www.2cto.com/uploadfile/Collfiles/20141223/2014122309291681.png" alt = "aym sans R crown ω? Why? Z? Ai? H? Z? H XZj]? Z y phenol) O Records) w w ky a blow ky "http://www.bkjia.com/ OS /linux/" target = "_ blank" class = "keylink"> Linux
Auto_failback on
Node ubuntuA
Node ubuntuB
Ping 192.168.1.1
2. haresources
............
UbuntuA192.168.1.134 monit
# Node-nameresource1 resource2... resourceN
............
3. authkeys
Auth 1
1 crc
#2 sha1 HI!
#3 md5 Hello!
Copy the preceding three configuration files to the/etc/ha. d directory on the master and slave servers, and change the authkeys permission to 600.
Start heartbeat on the master server and slave server respectively. You can view the log through tail-f/var/log/ha-log for testing.