Keepalived之——安装异常情况

时间:2022-10-31 13:26:13

转载请注明出处:http://blog.csdn.net/l1028386804/article/details/76383367

我们在安装Keepalived的时候,可能会出现一些异常情况,比如,我们按照以下命令在安装Keepalived时

# tar xzf keepalived-1.3.4.tar.gz
# cd keepalived-1.3.4
# ./configure --prefix=/usr/local/keepalived/
# make && make install
可能会出现如下异常:

Tips 1:安装过程中提示:*** WARNING – this build will not support IPVS with IPv6. Please install libnl/libnl-3 dev libraries to support IPv6 with IPVS.

解决方案为:

# yum install -y libnl3.x86_64
# yum install -y libnl3-devel.x86_64
Tips 2:configure: error: !!! Please install libnfnetlink headers. !!!

解决方案为:

# yum install -y libnfnetlink.x86_64 
# yum install -y libnfnetlink-devel.x86_64
之后,我们就可以正确安装Keepalived,没有任何异常了。