如何启用 KeepAlived

如何启用 KeepAlived

我已经编译并配置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

-------------------------------------------------------------------

页

如何修复此错误?
谢谢

答案1

标题和问题不匹配,因为 keepalived 已经启用但无法启动。

   Loaded: loaded (/lib/systemd/system/keepalived.service; **enabled**; vendor preset: enabled)

根据附件信息,配置文件 (/etc/keepalived/keepalived.conf) 为空,由于指定条件 (CondtionFileNotEmpty) 导致 keepalived 无法启动。将配置添加到文件并启动 keepalived。

相关内容