安装

1
yum install keepalived

常用命令

启动

1
systemctl start keepalived.service

关闭

1
systemctl stop keepalived.service

重启

1
systemctl restart keepalived.service

查看日志

1
tail -f /var/log/messages

PS.

配置文件在/etc/keepalived目录下,名称为:keepalived.conf

日志文件在/var/log目录下,名称为:messages