1.下载keepalived的源码 官方网站http://www.keepalived.org 直接链接:http://www.keepalived.org/software/keepalived-1.1.12.tar.gz
2.将下载的源码复制到/usr/src,解压缩
cp keepalived-1.1.12.tar.gz /usr/src
cd /usr/src
tar xvzf keepalived-1.1.12.tar.gz
cd keepalived-1.1.12
3.生成编译配置文件
./configure (默认安装到/usr/local,可以使用--prefix=参数指定安装目录)
make
make install