编译安装keepalived
keepalived安装还是 非常简单的
1. 安装包获取
https://keepalived.org/download.html
2. 编译安装keepalived-2.2.4
systemctl disable --now firewalld
yum -y install gcc curl openssl-devel libnl3-devel net-snmp-devel lrzsz
wget https://keepalived.org/software/keepalived-2.2.4.tar.gz
tar xf keepalived-2.2.4.tar.gz
cd keepalived-2.2.4
./configure --prefix=/usr/local/keepalived --disable-fwmark
make -j 4 && make install
mkdir /etc/keepalived
\cp /usr/local/keepalived/etc/keepalived/keepalived.conf /etc/keepalived/
systemctl start keepalived
systemctl status keepalived