负载均衡的综合部署练习(hproxy+keepalived和lvs-DR+keepalived+nginx+Tomcat)
一、haproxy+keepalivedhaproxy2台20.0.0.2120.0.0.22nginx2台20.0.0.2320.0.0.24客户机1台20.0.0.30这里没有haproxy不是集群的概念,他只是代理服务器。访问他直接可以直接访问后端服务器关闭防火墙安装haproxy和环境:yuminstall-ypcre-develbzip2-develgccgcc-c++maketarzx