首先到官网下载需要的包: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
到这里就安装完成了!
时间: 2024-10-14 05:37:42