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.[失败]
原因/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
确定删除
重新启动
service keepalived start
查看keepAlived运行状态(成功如图)
ps aux |grep 'keepalived'