负载均衡 标签

Nginx+Tomcat实现负载均衡集群

  |   0 评论   |   774 浏览

1.前期准备工作 1.1 安装 Nginx安装 Tomcat安装 1.2 copy两份tomcat [root@localhost tomcat]# mkdir /usr/local/tomcat/tomcat9001 [root@localhost tomcat]# mkdir /usr/local/tomcat/tomcat9002 [root@localhost tomcat]# cp -Rf /usr/local/tomcat/apache-tomcat-8.0.49/* /usr/local/tomcat/tomcat9002 [root@localhost tomcat]# cp -Rf /usr/local/tomcat/apache-tomcat-8.0.49/* /usr/local/tomcat/tomcat9001 2.修改tomcat端口 [root@localhost tomcat]# vi tomcat9001/conf/server.xml <Server port="18005" shutdown="SHUTDOWN"> //9001tom....