#############################

一、安装

1.安装keepalived依赖

dnf -y install openssl openssl-devel 

dnf -y install popt popt-devel
# 用于支持ipv6
dnf -y install libnl libnl-devel

 

2.下载keepalived源码包

官网地址:https://www.keepalived.org/download.html

keepalived源码安装与配置_官网

 

 

3.解压、编译、安装

mkdir /usr/local/keepalived

tar -xzvf keepalived-2.2.7.tar.gz

cd keepalived-2.2.7/

./configure --prefix=/usr/local/keepalived

make

make install

4.安装完成后的效果

keepalived源码安装与配置_官网_02

二、配置