[root@centos8 ~]yum install keepalived -y
[root@centos8 ~]systemctl start keepalived.services
[root@centos8 ~]systemctl status keepalived.service
在虚拟机系统上yum 安装Keepalivedy启动时报错,原因是配置文件中网卡的名称和虚拟中的名称不对照。
vi /etc/keepalived/keepalived.conf
修改为实际网卡名称。再次执行.systemctl start keepalive.service
keepalived成功启动。