Keepalived
如何啟用 KeepAlive
我已經編譯並配置
keepalived
了,raspberry
但它不會啟動。當我嘗試
systemctl
啟用時keepalived
出現錯誤------------------------------------------------------- root@haproxy:/etc/systemd/system# /etc/init.d/keepalived status ● keepalived.service - Keepalive Daemon (LVS and VRRP) Loaded: loaded (/lib/systemd/system/keepalived.service; enabled; vendor preset: enabled) Active: inactive (dead) Condition: start condition failed at Sun 2018-07-08 10:28:01 UTC; 28s ago └─ ConditionFileNotEmpty=/etc/keepalived/keepalived.conf was not met -------------------------------------------------------------------
如何修復此錯誤?
謝謝之前
由於 keepalived 已啟用但無法啟動,因此標題和問題之間存在不匹配。
Loaded: loaded (/lib/systemd/system/keepalived.service; **enabled**; vendor preset: enabled)
根據附加消息,配置文件(/etc/keepalived/keepalived.conf)是空的,並且由於指定的條件(CondtionFileNotEmpty)而阻止keepalived啟動。將配置添加到文件中,然後啟動keepalived。