1、gcc 安装
server01 与 server03 安装 gcc,否则 keepalived 在执行 configure 命令时,会提示“no acceptable C compiler found in $PATH”错误。
解决方法:
https://packages.debian.org/jessie/build-essential
2、libssl-dev 安装
server01 与 server03 安装 libssl-dev,否则 keepalived 在执行 configure 命令时,会提示如下错误:
configure: error:
!!! OpenSSL is not properly installed on your system. !!!
!!! Can not include OpenSSL headers files. !!!
解决方法:
https://packages.debian.org/jessie/libssl-dev
3、keepalived 编译安装
1)下载源码:https://pkgs.org/download/keepalived
2)编译安装:
tar -zxvf keepalived-2.0.20.tar.gz
cd keepalived-2.0.20/
./configure --prefix=/usr/local/keepalived
make && make install