centos7

CentOS7 Keepalived+LVS 实现高可用

别说谁变了你拦得住时间么 提交于 2020-10-30 09:06:46
系统环境: 操作系统:Centos7.2 依赖软件:net-tools 网络环境: Keepalived Master:192.168.5.251 Keepalived Backup:192.168.5.252 VIP: 192.168.5.100 RIP: 192.168.5.254 Keepalived Master ! Configuration File for keepalived global_defs { notification_email { acassen@firewall.loc failover@firewall.loc sysadmin@firewall.loc } notification_email_from Alexandre.Cassen@firewall.loc smtp_server 192.168.200.1 smtp_connect_timeout 30 router_id LVS_DEVEL } vrrp_script chk_mantaince_down { script "[[ -f /etc/keepalived/down ]] && exit 1 || exit 0" interval 1 weight 2 } vrrp_instance VI_1 { state MASTER interface eno16777736