首先进入/usr/local/
cd /usr/local
下载keepalived
wget http://www.keepalived.org/software/keepalived-1.2.18.tar.gz
解压keepalived
tar -zxvf keepalived-1.2.18.tar.gz
下载openssl插件
yum install -y openssl openssl-devel
4.开始编译keepalived
cd keepalived-1.2.18/ && ./configure --prefix=/usr/local/keepalived
5.make一下
make && make install