keepalived基本命令

一、查看keepalived状态,输入命令:

/etc/init.d/keepalived status

二、重启keepalived命令:

/etc/init.d/keepalived restart

三、启动keepalived命令:

/etc/init.d/keepalived start

四、停止keepalived命令:

/etc/init.d/keepalived stop

五、查看keepalived集群主节点在哪台服务器,执行命令:

ip a

看下自己设定的虚IP在哪台服务器,哪台就是主节点。

六、查看keepalived系统日志,可以进入系统文件中查看,输入命令:

less /var/log/message/

要用root用户查看。

你可能感兴趣的:(linux)