目录
1、整体架构
机器一(主):192.168.0.48 机器二(备):192.168.0.49
虚拟IP:192.168.0.55 192.168.0.56
2台机器均安装了Nginx,并且Nginx的配置完全一致。
2、主备切换原理
3、主机配置
! Configuration File for keepalived
#全局配置
global_defs {
notification_email { #指定keepalived在发生切换时需要发送email到的对象,一行一个
acassen@firewall.loc
failover@firewall.loc
sysadmin@firewall.loc
}
notification_email_from Alexandre.C