asdrtu 发表于 2018-12-30 09:22:38

keepalived + nginx 双机互备

global_defs {  notification_email {
  ludy@edgora.com
  }
  notification_email_from keepalived@staff.sina.com.cn
  smtp_server 127.0.0.1
  smtp_connect_timeout 30
  router_id LVS_DEVEL
  }
  vrrp_instance VI_1 {
  state MASTER      ############ 辅机为 BACKUP
  interface eth0
  virtual_router_id 51
  mcast_src_ip 192.168.6.162
  priority 102                  ########### 权值要比 bauck 高
  advert_int 1
  authentication {
  auth_type PASS
  auth_pass 1111
  }
  virtual_ipaddress {
  192.168.6.7
  }
  }

页: [1]
查看完整版本: keepalived + nginx 双机互备