摘要:
继续采坑。。有些坑,踩了才知道。1.文件位置不能错。首先是安装, 源码编译,--prefix=/usr/local/keepalive然后用 sbin/keepalive -f ...conf那就发现根本生成不了vip ,虚拟ip ,因为你的配置文件没有放在/etc/keepalived/keepalived.conf ,不生效的。。即使你指定了-f 。解决方案是$ cp /usr/local/keepalived/etc/rc.d/init.d/keepalived /etc/init.d/keepalived$ cp /usr/local/keepalived/sbin/keepalive 阅读全文