cd /usr/local/src
wget http://www.keepalived.org/software/keepalived-2.0.8.tar.gz
tar -zxvf keepalived-2.0.8.tar.gz
cd keepalived-2.0.8
yum -y install openssl
yum -y install openssl-devel
./configure --prefix=/usr/local/src/keepalived-2.0.8
#注意:可能需要安装gcc 如果你是最小化安装linux
#yum -y install gcc
make && make install
mkdir -p /etc/keepalived/
cp /usr/local/src/keepalived-2.0.8/etc/keepalived/keepalived.conf /etc/keepalived/
#重新配置
cp /usr/local/src/keepalived-2.0.8/keepalived/keepalived /etc/rc.d
---------------------------------------------
./configure --prefix生成makefile。
make根据makefile生成.so .a 与执行文件。
make install把二进制执行文件放至/usr/local/bin等目录下