目标 使用nginx和tomcat实现高性能负载均衡集群 前提 首先确保系统已经安装好nginx 步骤(单机版) 安装tomcat(2个) tomcat解压即可使用 配置环境变量 修改 /etc/profile文件, 添加如下内容 export CATALINA_BASE=/path/to/tomcat # tomcat的安装路径 export CATALINA_HOME=/path/to/tomcat export TOMCAT_HOME=/path/to/tomcat export CATALINA_2_BASE