keepalived 日志查看

修改vi /etc/sysconfig/keepalived文件,讲最后一行修改为


KEEPALIVED_OPTIONS="-D -d -S 0"

修改vi /etc/rsyslog.conf 文件,在最后一行增加

local0.*                                        /var/log/keepalived.log

重启:

/etc/init.d/rsyslog restart

查看日志输出:

/etc/init.d/keepalived restart;tail -f /var/log/keepalived.log


你可能感兴趣的:(keepalived,日志)