1、环境
1.1)tomcat1 域名 1
1.2)tomcat2 域名
1.3)nginx服务器 版本 nginx-1.7.9
2、配置
2.1)tomcat1配置片段
2.2)tomcat2配置片段
2.3)nginx 配置集群
3、启动nginx或nginx -s reload重启nginx.在浏览器输入地址http://localhost。访问成功。
本文共 233 字,大约阅读时间需要 1 分钟。
1、环境
1.1)tomcat1 域名 1
1.2)tomcat2 域名
1.3)nginx服务器 版本 nginx-1.7.9
2、配置
2.1)tomcat1配置片段
2.2)tomcat2配置片段
2.3)nginx 配置集群
3、启动nginx或nginx -s reload重启nginx.在浏览器输入地址http://localhost。访问成功。
转载于:https://my.oschina.net/softwarechina/blog/367521