4 keepalived做心跳检测wps

 

 

 

 

 

这个配置不会对httpd服务做检测。

 

备注 主从的脚本分别是

主端的脚本配置

! Configuration File for keepalived

global_defs {

router_id LVS_01

}

vrrp_instance VI_1 {

state MASTER

interface eth0

virtual_router_id 51

priority 100

advert_int 1

 

authentication {

auth_type PASS

auth_pass ganxing

}

 

virtual_ipaddress {

10.0.0.222/24 dev eth0

}

}

 

从端的脚本配置

! Configuration File for keepalived

global_defs {

router_id LVS_01

           }

 

vrrp_instance VI_1 {

state BACKUP

interface eth0

virtual_router_id 51

priority 99

advert_int 1

 

authentication {

auth_type PASS

auth_pass ganxing

}

 

virtual_ipaddress {

10.0.0.222/24 dev eth0

    }

   }

posted @ 2017-02-03 17:25  我爱测试胜于爱自己  阅读(134)  评论(0)    收藏  举报