This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
пакет_heartbeat [2019/03/22 15:42] val |
пакет_heartbeat [2022/01/29 20:44] val [Debian/Ubuntu] |
||
---|---|---|---|
Line 12: | Line 12: | ||
root@nodeN:~# apt install heartbeat | root@nodeN:~# apt install heartbeat | ||
- | root@nodeN:~# systemctl enable heartbeat | + | debian11# cat /etc/rc.local |
+ | </code><code> | ||
+ | #!/bin/sh | ||
+ | mkdir /run/heartbeat/ | ||
+ | </code><code> | ||
root@nodeN:~# zless /usr/share/doc/heartbeat/ha.cf.gz | root@nodeN:~# zless /usr/share/doc/heartbeat/ha.cf.gz | ||
Line 37: | Line 41: | ||
nodeN# cat ha.cf | nodeN# cat ha.cf | ||
</code><code> | </code><code> | ||
- | #bcast em2 | + | #bcast eth0 |
- | bcast eth2 | + | #bcast eth2 |
#ucast eth1 172.16.1.Y | #ucast eth1 172.16.1.Y | ||
#ucast eth2 slave | #ucast eth2 slave | ||
Line 75: | Line 79: | ||
В freebsd использовать IPaddr, в Linux IPaddr2 (иначе может привязать адрес не к тому интерфейсу) | В freebsd использовать IPaddr, в Linux IPaddr2 (иначе может привязать адрес не к тому интерфейсу) | ||
- | ===== Запуск ===== | + | ===== Запуск/Остановка ===== |
==== Debian/Ubuntu ==== | ==== Debian/Ubuntu ==== | ||
<code> | <code> | ||
- | root@nodeN:~# service heartbeat start | + | root@nodeN:~# systemctl enable heartbeat |
+ | |||
+ | root@nodeN:~# systemctl start heartbeat | ||
+ | |||
+ | root@nodeN:~# systemctl disable heartbeat | ||
+ | |||
+ | root@nodeN:~# systemctl stop heartbeat | ||
</code> | </code> | ||