源码编译安装keepalived
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了源码编译安装keepalived相关的知识,希望对你有一定的参考价值。
首先到官网下载需要的包:http://www.keepalived.org/download.html
[[email protected] local]# tar -zxvf /tmp/keepalived-1.3.5.tar.gz
[[email protected] local]# cd keepalived-1.3.5/
[[email protected] keepalived-1.3.5]# ./configure --prefix=/usr/local/keepalived
然后系统出现警告:
*** WARNING - this build will not support IPVS with IPv6. Please install libnl/libnl-3 dev libraries to support IPv6 with IPVS.
[[email protected] keepalived-1.3.5]# yum -y install libnl libnl-devel
安装完以后重新执行configure
这次出现错误:
configure: error: libnfnetlink headers missing
[[email protected] keepalived-1.3.5]# yum install -y libnfnetlink-devel
重新执行configure
现在进行编译:
[[email protected] keepalived-1.3.5]# make && make install
到这里就安装完成了!
以上是关于源码编译安装keepalived的主要内容,如果未能解决你的问题,请参考以下文章