宋子宪博客

Szx

Linux Centos7启动keepAlived失败解决方法
执行keepAlived命令service keepalived start 报错如下:Starting keep...
扫描右侧二维码阅读全文
12
2019/09

Linux Centos7启动keepAlived失败解决方法

执行keepAlived命令

service keepalived start

报错如下:

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.[失败]

Linux Centos7启动keepAlived失败解决方法1.png
原因
/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/

输入yes确定删除
Linux Centos7启动keepAlived失败解决方法2.png
重新启动

service keepalived start

查看keepAlived运行状态(成功如图)

ps aux |grep 'keepalived'

Linux Centos7启动keepAlived失败解决方法3.png

Last modification:September 12th, 2019 at 02:40 am
如果觉得这篇技术文章对您有帮助,可以请博主喝一杯饮料

Leave a Comment