1、安装如下rpm包,不安装此包在装keepalived时会报错
mkdir keepalived_rpm
cd keepalived_rpm/
wget https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-community-libs-compat-8.0.36-1.el7.x86_64.rpm
2、使用yum进行keepalived的安装
yum -y install keepalived
3、查看yum安装的keepalived的目录
rpm -ql keepalived
4、启动成功输入如下命令查看
ps aux | grep keepalived