Centos7启动keepalived失败原因

  • Post author:
  • Post category:其他


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/



版权声明:本文为weixin_40826349原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。