Nginx+keepalived做双机热备加tomcat负载均衡
环境说明:
'"$http_user_agent" "$http_x_forwarded_for"'; access_log? /usr/local/nginx/logs/access.log? access_log; }?}4.测试配置文件
Keepalived_vrrp: VRRP_Script(Monitor_Nginx) succeededKeepalived_vrrp: VRRP_Instance(VI_1) Transition to MASTER STATEKeepalived_vrrp: VRRP_Instance(VI_1) Entering MASTER STATEKeepalived_vrrp: VRRP_Instance(VI_1) setting protocol VIPs.Keepalived_vrrp: VRRP_Instance(VI_1) Sending gratuitous ARPs on eth0 for 192.168.2.51