dengwen3 发表于 2018-11-16 11:58:06

Handling nginx Failover With KeepAlived

vrrp_script chk_http_port {  
script "/usr/bin/killall -0 nginx"
  
interval 2
  
weight 2
  
}
  
vrrp_instance VI_1 {
  
interface eth0
  
state MASTER
  
virtual_router_id 51
  
priority 101
  
authentication {
  
auth_type PASS
  
auth_pass Add-Your-Password-Here
  
}
  
track_script {
  
chk_http_port
  
}
  
virtual_ipaddress {
  
202.54.1.1/29 dev eth1
  
}
  
}
  



页: [1]
查看完整版本: Handling nginx Failover With KeepAlived