在centos7.以上版本,可以使用systemctl start keepalived.service命令将keepalived作为服务启动,但是在centos6版本中systemctl是无法使用的。
centos7.
systemctl start keepalived.service
keepalived
centos6
systemctl
搜索一番,发现可以用以下命令进行替换service keepalived start
service keepalived start
启用成功后,使用命令ps -ef | grep keepalive查看是否启动成功,
ps -ef | grep keepalive
若成功,则如下图所示