修改/etc/sysconfig/keepalived 增加如下
KEEPALIVED_OPTIONS="-D -d -S 0"
修改 /etc/rsyslog.conf 增加以下2行
#keepalived
local0.* /var/log/keepalived.log
重启一下日志轮询和keepalive服务
systemctl restart rsyslog
systemctl restart keepalived
验证一下