3.keeplived配置文件
#打开keeplived配置文件
vim /etc/keepalived/keepalived.conf
#keeplived配置文件案例说明
! Configuration File for keepalived
global_defs {# 路由id:当前安装keepalived节点主机的标识符,全局唯一router_id keep_201
}
#计算机节点
vrrp_instance VI_1 {# 主节点 MASTER/BACKUPstate MASTER# 网卡