只要在反向代理的情况下的配置文件里,在upstream里添加所有代理服务器的server+IP+端口+weight=?默认是1
upstream tomcat2 {
server 192.168.25.148:8081;
server 192.168.25.148:8082 weight=2;
}
注:keepalived+nginx 实现主备
lvs+keepalived实现高可用