1. 程式人生 > >Centos7啟動keepalived失敗原因

Centos7啟動keepalived失敗原因

Centos7中啟動keepalived失敗

Starting keepalived (via systemctl):  Job for keepalived.service failed because the control process exited with error code. See "systemctl status keepalived.service" and "journalctl -xe" for details.
                                                           [失敗]

原因

/usr/sbin/建立keepalived軟連結有問題,需要刪除,重新從你建立的keepalived/sbin/目錄中將keepalived檔案建立軟連結到/usr/sbin目錄

自己在建立keepalived軟連結時,使用的是以下命令

ln -s /usr/local/sbin/keepalived /usr/sbin/

後來才發現軟連結建立錯誤,以下是解決方案

解決方法:

1.刪除掉從/usr/sbin/中

rm /usr/sbin/keepalived

2.建立新的軟連結

ln -s /usr/local/keepalived/sbin/keepalived /usr/sbin/