keepalived安装
[root@master ~]# tar zxf keepalived-1.2.19.tar.gz
[root@master ~]# cd keepalived-1.2.19
[root@master keepalived-1.2.19]# ./configure --prefix=/usr/local/keepalived
--sysconf=/etc --with-kernel-dir=/usr/src/kernels/2.6.32-431.el6.x86_64
--sysconf 指定了配置文件的地址
--prefix 指定了安装目录
--with-kernel-dir 指定使用内核源码中的头文件,即 include 目录.只有使用 LVS 时才需要这个参数,其它的时候不需要。
[root@master keepalived-1.2.19]# make
[root@master keepalived-1.2.19]# make install
[root@master keepalived-1.2.19]# ln -s /usr/local/keepalived/sbin/keepalived /sbin/
[root@master keepalived-1.2.19]# chkconfig --add keepalived
[root@master keepalived-1.2.19]# chkconfig --level 35 keepalived on
本文转自 meteor_hy 51CTO博客,原文链接:http://blog.51cto.com/zuoshou/1744681,如需转载请自行联系原作者