1、进入http://www.keepalived.org/下载,我下载的是keepalived-1.2.13.tar.gz
2、解压
#tar -xzvf keepalived-1.2.13.tar.gz
3、cd到解压后的目录
#cd keepalived-1.2.13
4、执行配置编译并安装
#./configure && make && make install
#./configure --sysconf=/etc && make && make install
如果报错openssl错误,则安装
#yum install -y openssl openssl-devel
5、复制文件
/bin/cp /usr/local/sbin/keepalived /usr/sbin/