首先到官网下载需要的包: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
然后系统出现警告:
[[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
到这里就安装完成了!
原文地址:https://www.cnblogs.com/zouhong/p/12312086.html
时间: 2024-07-29 19:26:56