在win32下apache与tomcat做负载均衡(Under Win32, Apache and Tomcat do load balancing).doc
文本预览下载声明
在win32下apache与tomcat做负载均衡(Under Win32, Apache and Tomcat do load balancing)
2009-11-13
Do Apache and Tomcat under Win32 load balancing: Internet blog classification
TomcatApache configuration management CSSXML./**
*
Author: Wild * four abin
* time: 2008-12-31
* /
First, install Apache
1, Download APACHE
2, the installation of APACHE, can be installed by default!
3, run APACHE!
Two, the installation of two Tomcat
1, Download apache-tomcat-5.5.25.zip decompression can
2, named the two Tomcat tomcat1, tomcat2
3, modify the Tomcat configuration file server.xml:
Let two Tomcat shutdown port, AJP port and Connector port start, Engine jvmRoute are not the same, and put the following code in server.xml:
Txt code
1. modify reference:
Two
3.tomcat1 server.xml need to be amended:
Four
5.Server port= 8005 shutdown= SHUTDOWN instead
Six
7.Server port= 8015 shutdown= SHUTDOWN
Eight
9.Connector port= 8009 protocol= AJP/1.3 redirectPort= 8443 / to
Ten
11.Connector port= 8019 protocol= AJP/1.3 redirectPort= 8443 /
Twelve
13.Engine name= Catalina defaultHost= localhost instead
Fourteen
15.Engine name= Standalone defaultHost= localhost jvmRoute= Worker1
Sixteen
17.tomcat2 server.xml modification:
Eighteen
19.Server port= 8005 shutdown= SHUTDOWN instead
Twenty
21.Server port= 8025 shutdown= SHUTDOWN
Twenty-two
23.Connector port= 8009 protocol= AJP/1.3 redirectPort= 8443 / to
Twenty-four
25.Connector port= 8029 protocol= AJP/1.3 redirectPort= 8443 /
Twenty-six
27.Engine name= Catalina defaultHost= localhost instead
Twenty-eight
29.Engine name= Standalone defaultHost= localhost jvmRoute= worker2
Thirty
Do these 31. modified two Tomcat can also start. The red part is used for the Tomcat cluster!
Modify the reference:
Tomcat1 server.xml need to be amended:
Server port= 8005 shutdown= SHUTDOWN instead
Server port= 8015 shutdown= SHUTDOWN
Connector port= 8009 protocol= AJP/1.3 redirectPort= 8443 / to
Connector port= 8019 protocol= AJP/1.3 redirectPort= 8443 /
Engine name= Cat
显示全部