Nginx+keepalived+tomcat实现tomcat高可用性负载均衡试验环境: CentOS5.4、pcre-8.12、nginx-upstream-jvm-route-0.1、nginx-1.0.10、apache-tomcat-7.0.23 、keepalived-1.1.17.tar.gz、jdk-7u2-linux-x64.tar.gz主nginx服务器地址:10.29.9.200 辅nginx服务器地址:10.29.9.201 tomcat1: 10.29.9.202 tomcat2: 10.29.9.203VIP: 10.29.9.188拓扑如下:1.分别在10.29.9.200和10.29.9.201上面安装nginxtar zxf pcre-8.12.tar.gz cd pcre-8.12 ./configure make;make install下载下面的插件安装,否则nginx无法识别tomcat中jvmRoute,从而无法达到session复制的效果。wget http:/friendly.sinaap