1.下载rpm包
官网地址:https://www.keepalived.org/download.html
2.上传包并且创建keepalived用户目录下并且解压
3.进入keepalived-1.3.5
配置keepalived
cd keepalived-1.3.5/
./configure --prefix=/home/keepalived
4.报错*** WARNING - this build will not support IPVS with IPv6. Please install libnl/libnl-3 dev libraries to support IPv6 with IPVS
1.yum下载即可
yum -y install libnl libnl-devel
2.rpm下载插件
地址:http://www.rpmfind.net/linux/rpm2html/search.php?query=libnl-devel&submit=Search+…&system=&arch= 切换root用户安装 rpm -ivh libnl-devel-1.1.4-3.el7.x86_64.rpm
5.重新配置报错configure: error: libnfnetlink headers missing
1.yum下载插件
yum install -y libnfnetlink-devel
2.rpm下载
地址:http://www.rpmfind.net/linux/rpm2html/search.php?query=libnfnetlink-devel&submit=Search+…&system=&arch= rpm -ivh libnfnetlink-devel-1.0.1-4.el7.x86_64.rpm
6.重新执行配置及安装命令
./configure --prefix=/home/keepalived make && make install 多出目录
测试
进入sbin ./keepalived -v
|