安装
wget https://www.keepalived.org/software/keepalived-2.0.20.tar.gz
tar -zxvf keepalived-2.0.20.tar.gz
cd keepalived-2.0.20
./configure \
--prefix=/usr/local/keepalived \
--sysconf=/etc
make && make install
- prefix: keepalived安装位置
- sysconf: keepalived核心配置文件所在位置,固定位置,改成其他规则位置keepalived启动不了,中会报错。
配置过程中可能会出现警告信息,如下所示:
*** WARNING - this build will not support IPVS with IPv6. Please install libnl/libnl-3 dev libraries to support IPv6 with IPVS.
安装libnl/libnl-3依赖
yum -y install libnl libnl-devel
安装出现以下错误
configure: error: libnfnetlink headers missing
安装libnfnetlink
yum install -y libnfnetlink-devel
重新configure一下,此时OK。
网友评论