Keepalived默认日志存放在系统日志:/var/log/messages下

把日志单独存放
修改/etc/sysconfig/keepalived

KEEPALIVED_OPTIONS="-D" 修改为:KEEPALIVED_OPTIONS="-D -d -S 0"
/etc/rsyslog.conf 末尾添加

local0.*                                                /var/log/keepalived.log

重启日志记录服务

service rsyslog restart

重启keepalived

service keepalived  restart

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code