版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、轻松实现Apache,Tomcat集群和负载均衡0,环境说明Apache:apache_2.0.551个Tomcat:apache-tomcat-5.5.17(zip版)2个mod_jk:mod_jk-apache-2.0.55.so1个第一部分:负载均衡负载均衡,就是apache将客户请求均衡的分给tomcat1,tomcat2.去处理1 .安装apche,tomcathttp:/下载Apache2.0.55/download-55.cgi下载tomcat5.5zip版本(解压即可,绿色版http:/apache.
2、/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.15/和apache版本匹配按照jdk,我的路径为:E:ideapacheApache2解压两份Tomcat,路径分别为E:idetomcat1,E:idetomcat2PleaseseetheREADMEfileforpackaginginforiDetion,Itesplains押BinaryDisMbutionsmd5)o1ar.工Q三工ncET(pgp1 Deployer:ozi£(pgPjotor,(dsd,mdE) Embedded:qzi2(3武5)
3、Otar,g。(pg内 AdministrationWebApplicatiDnlo(pgp,indS)o工ar.咚(白的喳) JDK1.4ConvatabilityPackage:0(pgPj词5)gtar,giCpgPjmdS) Dacuinentatian(AlreadyIncludedinCareDamlaads:0tar,hz(dm口.rodS)下载mod_jkApacheTomcatApache1onicatTomcat6DownIoadsV'cLcqdctotheT3IKQ+5.工de!adallTjnicatrdca5rbranchns,aswell1DosmlDad
4、矶茁1二Ginn? Tcincat6.x "mat5.x 口尔软4.1二1w;二二”一I_三产空. 玄向F2QuickNavigation旺:辽|15.2。|三S:ZOfEtaFJeleeaeintegrity|m2£|ArYoumusiverifytheiniBgritvof"thsdorasi-Hjiatureshouldbecuatchedagainstthe4rr.rIb_.iiji4tr-jib.山置宜置昏苴苴苞5置击置?置iwetpjL:rmdi:r巨utdJ,工臼an*工亡日,亡euca工工.日31cizsapjL:rEd±:r巨叱匕由三工
5、土营&0±七E曰,亡u匕匕mm£a3匚二永mywfj口上s:wj口1 knynijipInz:1口cinumocl口k京psuhm13.3=4一后ap土口m0modmk-duaiuhu-13-34-ug口inemurftoclJik-m日uHe一1三-3:4h与口03-No-2005IS:58148KOS-NOV-300516:55IB喋D8-No-2C0516:4263OK8-NOV-200516:5519Cl3-No-v-2:OOS16:49552:K03-Nov-200516:S508-Wo-2:C0516:21124K09-Nov=20051:55O3-Ic
6、,v-2COS15-S1口124K09Nov=200S155oa-iMov-2aosis-sa132K08Nov-200S16:SS194O3-NQV-ZCQ5:1613EK08-Nov-2DOS16:55194KLSELR±王卫dif工gLSC;A>d>eToinc3t«JFh.1.2.1玉1«1,vTTn2TTamXTJIx-1_I.:._:C.TT<T"A_11U_If门FHT_I.L2 .修改Apache配置文件http.conf在apache安装目录下conf目录中找至Uhttp.conf在文件最后加上下面一句话就可以了inc
7、lude"E:ideapacheApache2confmod_jk.conf1'iz亘区#=tomcat1=worker.tomcat1.port=8009#ajp13worker.tomcat1.host=localhost#tomcatworker.tomcat1.type=ajp13worker.tomcat1.lbfactor=1#server#=tomcat2=worker.tomcat2.port=9009#ajp13worker.tomcat2.host=localhost#tomcatworker.tomcat2.type=ajp13worker.tomcat
8、2.lbfactor=1#serverFht+pil.Cfinf-记事本ItUirtiualHostexample:HAJumDstanyApachedirectivemaygointoaUirtuallHIost:container.ItTheFirstUirtuailHostsectionisusedforrequestswithoutaknovinItspruernavie.ttItCLirtualHnst*=B9>Si?ruerAdninuebvnai5teirdunnK-hD5t91?sample.匚umDocunentRoot/wuM/docs/dummp-hast.PNam
9、ple.conServerNaraeiiu隔叫一host.example,meErrorLoglogs/dunni-host.oxanple,con-orror_logGustomLoqloqs/dumny-nastBeKampie,con-accesslaqcommon#</VirtualHo5t>面一句话指定噂Idelude"F:VdeapctieApdche2cDRfmD<l_jk.conF1Illi2.http.conf同目录下新建mod_jk.conf文件,内容如下#力口载mod_jkModuleLoadModulejk_modulemodules/mod
10、_jk-apache-2.0.55.so#指定perties文件路径JkWorkersFileconf/perties#指定那些请求交给tomcat处理,"controller"为在pertise里指定的负载分配控制器JkMount/*.jspcontroller3 .在http.conf同目录下新建perties文件,内容如下worker.list=controller,tomcat1,tomcat2#server歹!J表端口号,在tomcat下server.xml配置,默认8009的
11、主机地址,如不为本机,请填写ip地址的加权比重,值越高,分得的请求越多端口号,在tomcat下server.xml配置,默认8009的主机地址,如不为本机,请填写ip地址的加权比重,值越高,分得的请求越多#=controller,负载均衡控制器=worker.controller.type=lbworker.controller.balanced_workers=tomcat1,tomcat2#指定分担请求的tomcatworker.controller.sticky_session=14 .修改tomcat配置文件server.xml如果你在不同电脑上安装tomcat,tomcat的安装数量
12、为一个,可以不必修改tomcat配置文件我这里是在同一台电脑上安装两个tomcat,所以需要更改其中一个的设置打开tomcat2/conf/server.xml文件目Iserver.e>1-写字板口叵区文件如编辑查看9插入P格式炉帮助如口国口昌昌物通则< !DefineanAJP1.3Connectoronport8009><ConnBctorport="9009修改ap-L3端口为9009enableLookups="fIlse("tedirectPort=178443*protocol='TArP/l.3T/3< I-De
13、fineaFroxiedHTTF/l»1Conn< 1-Seeproxydocunentationfornoreinfrmartionaboutusingthis.一一>KCcmnectorpcirt="9口82"8082改为9082.naKThreads=150minSpareThreads=25masSpareThreaids=T5enab1eLookxips-*false*a.cceptCount=r100*connectlonTimeout=*20000"pr0xyPort=<*8OfrdisablelJploadTiiteou
14、t=*true/>NUN要”帮助M,话按Fl5 .编写一个测试jsp建立一个目录test.里面新建一个test.jsp,内容为<%System.out.println("=");%>把test放至Utomcat1,tomcat2的webappsT6 .启动apache,tomcat1,tomcat2,进行测试通过http:/localhost/test/test.jsp访问,查看tomcatl的窗口,可以看到打印了一行"=再刷新一次,tomcat2也打印了一条,再刷新,可以看到请求会被tomcat1,tomcat2轮流处理,实邑:怵二用二1二bF
15、rcrwLtEmtiTEWt9口时nJi:ft.t口ft就鹏曲UI-卯M者Sjijtpj-4-而用新一注期蜂叮一集,再刷新,可以看到雷家合播tmr就“面1聒任轮盘处理,荚现了我科Bwfe-ll-Ifi13=224T*Q|i:.«.»£jib-.c-ata1Iha>c<ired£ta.nd«r<dlHD51gtArt55.-KHLv-BlldiAtivndiEkliled(MK-11-IS£3工金?等Fu一.£>*亚-hf(11r|lt(pllPing0Ktan-tinyHITP/1.1nmkttMT的
16、总Bflt-ll-lfi13=22:oi"QiAMi£lie-.jik.cennD-n.Clbanne-lSflchje-ti>nit'息2JK=ajplSl±ftvnin-g1onZ0BB.8.0z0991箝工打器尊眄j冲Jk-mTrJ必"曰萼"尸+;JMminningD-itine=Bz4frconf00-11.-1813-22-2ClarQi.aMc:ie.c1ina.atoreco-nfig-StoweLoaderlc«d4JS:Findveryni*regic&kfi1atcl4EEpa.thrsECU
17、Tce1,箝工打名帮“rMrdKthv.G同MimfUFMHiJiprQMim¥“Tl上息;HRMt:产量t&fEijpInnaTomcat2第二部分,配置集群只配置负载均衡还不行,还要session复制,也就是说其中任何一个tomcat的添加的sessio它tomcat,集群内的tomcat都有相同的session1.修改tomcat1,tomcat2的server.xml,将集群部分配置的在注释符删掉,并将tomcat2的400免与tomcat冲突,当然,如果是两台电脑,是不用改端口的,去掉注释符即可server-zm!-写字板文件(E)编辑何)查看也)初入B格式5帮助口
18、吓。昌以的其电围,6则meajftFrequency"500*nicastDrcipTinie="f3000*/><ReceiverclassName-"ot£napach电tcat.linarclusterrtcp.ReplicationLisrtenerfftcpListsnAddress=rf,0021将Tomcat2的4001改为4002避免与Tomcat1冲突tcpSelectofTimjeout=*tcpThreadCounts,6'/><SenderelassName-"ors.Apache,cat
19、ilinaBcluster,tcp.Rep1icat1&nTransAit11rreplicatiQnMde=*pooled*匕I<>要w帮aFTWfFnum2,修改测试项目test修改test.jsp,内容如下<%pagecontentType="text/html;charset=GBK"%><%pageimport="java.util.*"%><html><head><title>ClusterAppTest</title></head><
20、;body>ServerInfo:<%out.println(request.getLocalAddr()+":"+request.getLocalPort()+"<br>");%><%out.println("<br>ID"+session.getId()+"<br>");/如果有新的Session属性设置StringdataName=request.getParameter("dataName");if(dataName!=null
21、&&dataName.length()>0)StringdataValue=request.getParameter("dataValue");session.setAttribute(dataName,dataValue);out.print("<b>Session列表</b>");Enumeratione=session.getAttributeNames();while(e.hasMoreElements()Stringname=(String)e.nextElement();Stringvalue=s
22、ession.getAttribute(name).toString();out.println(name+"="+value+"<br>");System.out.println(name+"="+value);%><formaction="index.jsp"method="POST">名称:<inputtype=textsize=20name="dataName"><br>值:<inputtype=textsi
23、ze=20name="dataValue"><br><inputtype=submit></form></body></html>然后在test新建WEB-INF目录,WEB-INFF新建web.xml,内容如下<web-appxmlns="xsi:schemaLocation="version="2.4"><display-name>TomcatDemo</display-name><distributable/><
24、;/web-app>注意:在你的应用的web.xml加入<distributable/>即可ok,讲test复制至Utomcat1,tomcat2的webapps下,重启apache,tomcat1,tomcat2,输入网址http:/localhost/test/test.jsp新建一个名称为xiaoluo,值为cdut的session,提交查询,新开一个ie窗口,再提交查询,个tomcat是负载均衡,并且session同步的工件如阖旬it世后CE:旦施以工具M助0P也1上山三Mtpf/lcr4Jrt/te-51,rmdtz.jspServerInfo:mill:SOToc
25、t性息:Rri5teriwsiiifliyer/lestLucluslttrt*lntwntNmkIwithnutvi'-696*111117*1361or<r»Ap«ctacatalina.clustor.QQOcion-Voltdl的史:Sitartijigc.lux:teringumria仃erntZtr-st2C8S11-ISi?i18101org,cte-catalina.clu&tBi-.sion/DeltylI?rSieeMLuns信息;M.iniifftrIZEOftt>:*小区cgfnrntft小.Hn>vwtnhnrfl
26、:ne界中芒加内茗口号*clustai1Jungiuii-a.1p00&-ll-1917:JB:13opgami心HeLrSriti;i&hi;愕告*Mnnflr七用tJUrftniiatl.ricAst-Plc-«sttT«mJtjerItcp=Z1?*1M2B11h?B2TM-sipirflticwiiHUIT|卜UFKUN,41U卜苴11Ifl17«AR!1«rg.npnr'hr产科用6-11-1®17;1RtflilGT-g.apachs.coKute.httpll.HttplI(UwiaPro常口©信
27、息StartxiigHrrP/1onlittp-!fUHU2AS6-11-1*I7:lfis0jl«r-ff,apcM>Jk-cnrNtirini,ChAhnol&onMni-l品节总:Jill3R3U»twUf«n/B.ft.B.SE90»KOfifi-11-1®l!7;B±f11nrf>nparlw:.Jlk-anrvrTr.Jldlninatnrt信息:krunnin<f1DM1tirw-0z47c>amE;F|FulJL2C86-11-1#i?slB-0Jorff,rinpflchj-Ml&qu
28、ot;Tia.3torctonfIgT&tcrcLondi,士总:ELr0fMfyif哂*5。胪-r*3MMi酢yxj>VAlcL#。七内LlhrHEsurcv居弟11-Jfl:8721D,p.nlw.ntnlin.BtnrEii.nliinihiatnT侑息:学be”inkngcrI</testJI«seasion帅一七工1HlV3lH5ia始rg.nmh电*rl叩CuyutwMilP/L,吉史、:JK=ajfl3IJtbiEniouin/J-18i?sl0;0S!org.:ptalifa.clus.tcr.tct.SinuilcTcp情息£ReiHi
29、CfB«nhepWfleriShi后Mchft,EMlHiwuflwfbfetkh-hhhk±amlui-cdut糖息i:;JIlmnnlnyIDRHHf-111H17:1R:13crg'.apiClbw.e-ntajiphi,atnrernniiInrtflLdiai.-11-lUnpg*.aparlie一仁F二息:EhFV"UtdJ'lLLUill57B1KU3曲-hbhhlAOluQ=cd丽】Hhb二hbh>t4alina.startup_Cah.1ina与七血尸itei-tfai8-wTomcatl:<?xmlversion=&
30、#39;1.0'encoding='utf-8'?><!-LicensedtotheApacheSoftwareFoundation(ASF)underoneormorecontributorlicenseagreements.SeetheNOTICEfiledistributedwiththisworkforadditionalinformationregardingcopyrightownership.TheASFlicensesthisfiletoYouundertheApacheLicense,Version2.0(the"License&
31、quot;);youmaynotusethisfileexceptincompliancewiththeLicense.YoumayobtainacopyoftheLicenseat/licenses/LICENSE20Unlessrequiredbyapplicablelaworagreedtoinwriting,softwaredistributedundertheLicenseisdistributedonan"ASIS"BASIS,WITHOUTWARRANTIESORCONDITIONSOFANYKIND,eitherexp
32、ressorimplied.SeetheLicenseforthespecificlanguagegoverningpermissionsandlimitationsundertheLicense.-><!-Note:A"Server"isnotitselfa"Container",soyoumaynotdefinesubcomponentssuchas"Valves"atthislevel.Documentationat/docs/config/server.html<Serverport="8005&q
33、uot;shutdown="SHUTDOWN"><!-APRlibraryloader.Documentationat/docs/apr.html-><ListenerclassName="org.apache.catalina.core.AprLifecycleListener"SSLEngine="on"1-InitializeJasperpriortowebappsareloaded.Documentationat/docs/jasper-ho<ListenerclassName=Horg.apac
34、he.catalina.core.JasperListener"/><!-JMXSupportfortheTomcatserver.Documentationat/docs/non-existent.html-<ListenerclassName="org.apache.catalina.mbeans.ServerLifecycleListener”/><ListenerclassName="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/<!-
35、GlobalJNDIresourcesDocumentationat/docs/jndi-resources-howto.html-><GlobalNamingResources><!-EditableuserdatabasethatcanalsobeusedbyUserDatabaseRealmtoauthenticateusers-><Resourcename="UserDatabase"auth=HContainer"type="org.apache.catalina.UserDatabase”descripti
36、on="Userdatabasethatcanbeupdatedandsaved"factory="org.apache.catalina.users.MemoryUserDatabaseFactory”pathname="conf/tomcat-users.xml”/></GlobalNamingResources><!-A"Service"isacollectionofoneormore"Connectors"thatshareasingle"Container"No
37、te:A"Service"isnotitselfa"Container",soyoumaynotdefinesubcomponentssuchas"Valves"atthislevel.Documentationat/docs/config/service.html-><Servicename="Catalina"><!-Theconnectorscanuseasharedexecutor,youcandefineoneormorenamedth<!-<Executorname=
38、"tomcatThreadPool"namePrefix="catalina-exec-"maxThreads="150"minSpareThreads="4"/>一><!-A"Connector"representsanendpointbywhichrequestsarereceivedandresponsesarereturned.Documentationat:JavaHTTPConnector:/docs/config/http.html(blocking&no
39、n-blocking)JavaAJPConnector:/docs/config/ajp.htmlAPR(HTTP/AJP)Connector:/docs/apr.htmlDefineanon-SSLHTTP/1.1Connectoronport8080-><Connectorport="8080"protocol="HTTP/1.1"connectionTimeout="20000"redirectPort="8443"/><!-A"Connector"usingthe
40、sharedthreadpool-><!-<Connectorexecutor="tomcatThreadPool"port="8080"protocol="HTTP/1.1"connectionTimeout="20000"redirectPort="8443"/>-><!-DefineaSSLHTTP/1.1Connectoronport8443ThisconnectorusestheJSSEconfiguration,whenusingAPR,theco
41、nnectorshouldbeusingtheOpenSSLstyleconfigurationdescribedintheAPRdocumentation-><!-<Connectorport="8443"protocol="HTTP/1.1"SSLEnabled="true"maxThreads="150"scheme="https"secure="true"clientAuth="false"sslProtocol="TL
42、S"/>-><!-DefineanAJP1.3Connectoronport8009-><Connectorport="8009"protocol="AJP/1.3"redirectPort="8443"/><!-AnEnginerepresentstheentrypoint(withinCatalina)thatprocesseseveryrequest.TheEngineimplementationforTomcatstandaloneanalyzestheHTTPheaders
43、includedwiththerequest,andpassesthemontotheappropriateHost(virtualhost).Documentationat/docs/config/engine.html-><!-YoushouldsetjvmRoutetosupportload-balancingviaAJPie:<Enginename="Standalone"defaultHost="localhost"jvmRoute="jvm1">-><Enginename="C
44、atalina"defaultHost="localhost"jvmRoute="tomcat1"><!-Forclustering,pleasetakealookatdocumentationat:/docs/cluster-howto.html(simplehowto)/docs/config/cluster.html(referencedocumentation)-><!-<ClusterclassName="org.apache.catalina.ha.tcp.SimpleTcpCluster&q
45、uot;/>一><ClusterclassName="org.apache.catalina.ha.tcp.SimpleTcpCluster"channelSendOptions="6"><ManagerclassName="org.apache.catalina.ha.session.BackupManager"expireSessionsOnShutdown="false”notifyListenersOnReplication="true"mapSendOptions=
46、"6"/><!-<ManagerclassName="org.apache.catalina.ha.session.DeltaManager"expireSessionsOnShutdown="false"notifyListenersOnReplication="true"/>-><ChannelclassName="org.apache.catalina.tribes.group.GroupChannel”><MembershipclassName=&q
47、uot;org.apache.catalina.tribes.membership.McastServiceaddress=""port="45564”frequency="500"dropTime="3000"/><ReceiverclassName="org.apache.catalina.tribes.transport.nio.NioReceiveraddress="auto"port="4001"selectorTimeout=&quo
48、t;100"maxThreads="6"/><SenderclassName="org.apache.catalina.tribes.transport.ReplicationTransm<TransportclassName="org.apache.catalina.tribes.transport.nio.PooledPa</Sender><InterceptorclassName="erceptors.Tcp<Int
49、erceptorclassName="erceptors.MessageDispatch15Interceptor<InterceptorclassName="erceptors.ThroughputInterceptor"/></Channel><ValveclassName="org.apache.catalina.ha.tcp.ReplicationValve"fil
50、ter=".*.gif;.*.js;.*.jpg;.*.png;.*.htm;.*.html;.*.css;.*.<DeployerclassName="org.apache.catalina.ha.deploy.FarmWarDeployer"tempDir="/tmp/war-temp/"deployDir="/tmp/war-deploy/"watchDir="/tmp/war-listen/"watchEnabled="false”/><ClusterListenerc
51、lassName="org.apache.catalina.ha.session.ClusterSessionLi</Cluster><!-TherequestdumpervalvedumpsusefuldebugginginformationabouttherequestandresponsedatareceivedandsentbyTomcat.Documentationat:/docs/config/valve.html-><!-<ValveclassName="org.apache.catalina.valves.RequestD
52、umperValve”/><!-ThisRealmusestheUserDatabaseconfiguredintheglobalJNDIresourcesunderthekey"UserDatabase".AnyeditsthatareperformedagainstthisUserDatabaseareimmediatelyavailableforusebytheRealm.-><RealmclassName="org.apache.catalina.realm.UserDatabaseRealmresourceName="U
53、serDatabase”/><!-DefinethedefaultvirtualhostNote:XMLSchemavalidationwillnotworkwithXerces2.2.<Hostname="localhost"appBase="webapps”unpackWARs="true"autoDeploy="true"xmlValidation="false"xmlNamespaceAware="false"><!-SingleSignOnval
54、ve,shareauthenticationbetweenwebapplicationsDocumentationat:/docs/config/valve.html-><!-<ValveclassName="org.apache.catalina.authenticator.SingleSignOn”/><!-Accesslogprocessesallexample.Documentationat:/docs/config/valve.html-><!-<ValveclassName="org.apache.catalina
55、.valves.AccessLogValve"directory="logs"prefix="localhost_access_log."suffix=".txt"pattern="common"resolveH</Host></Engine></Service></Server>Tomcat2<?xmlversion='1.0'encoding='utf-8'?><!-LicensedtotheApache
56、SoftwareFoundation(ASF)underoneormorecontributorlicenseagreements.SeetheNOTICEfiledistributedwiththisworkforadditionalinformationregardingcopyrightownership.TheASFlicensesthisfiletoYouundertheApacheLicense,Version2.0(the"License");youmaynotusethisfileexceptincompliancewiththeLicense.Youmay
57、obtainacopyoftheLicenseat/licenses/LICENSE20Unlessrequiredbyapplicablelaworagreedtoinwriting,softwaredistributedundertheLicenseisdistributedonan"ASIS"BASIS,WITHOUTWARRANTIESORCONDITIONSOFANYKIND,eitherexpressorimplied.SeetheLicenseforthespecificlanguagegoverningpermissi
58、onsandlimitationsundertheLicense.-><!-Note:A"Server"isnotitselfa"Container",soyoumaynotdefinesubcomponentssuchas"Valves"atthislevel.Documentationat/docs/config/server.html-><Serverport="9005"shutdown="SHUTDOWN"><!-APRlibraryloader.D
59、ocumentationat/docs/apr.html-><ListenerclassName="org.apache.catalina.core.AprLifecycleListener”SSLEngine="on"/><!-InitializeJasperpriortowebappsareloaded.Documentationat/docs/jasper-howto.html-><ListenerclassName="org.apache.catalina.core.JasperListener”/>&l
60、t;!-JMXSupportfortheTomcatserver.Documentationat/docs/non-existent.html-><ListenerclassName="org.apache.catalina.mbeans.ServerLifecycleListener"/><ListenerclassName="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener”/><!-GlobalJNDIresourcesDocumentationat/d
61、ocs/jndi-resources-howto.html-><GlobalNamingResources><!-EditableuserdatabasethatcanalsobeusedbyUserDatabaseRealmtoauthenticateusers<Resourcename="UserDatabase"auth="Container"type="org.apache.catalina.UserDatabase"description="Userdatabasethatcanbeu
62、pdatedandsaved"factory="org.apache.catalina.users.MemoryUserDatabaseFactory"pathname="conf/tomcat-users.xml”/></GlobalNamingResources><!-A"Service"isacollectionofoneormore"Connectors"thatshareasingle"Container"Note:A"Service"isn
63、otitselfa"Container",soyoumaynotdefinesubcomponentssuchas"Valves"atthislevel.Documentationat/docs/config/service.html-><Servicename="Catalina"><!-Theconnectorscanuseasharedexecutor,youcandefineoneormorenamedthreadpools-><!-<Executorname="tomcat
64、ThreadPool"namePrefix="catalina-exec-"maxThreads="150"minSpareThreads="4"/>><!-A"Connector"representsanendpointbywhichrequestsarereceivedandresponsesarereturned.Documentationat:JavaHTTPConnector:/docs/config/http.html(blocking&non-blocking)Ja
65、vaAJPConnector:/docs/config/ajp.htmlAPR(HTTP/AJP)Connector:/docs/apr.htmlDefineanon-SSLHTTP/1.1Connectoronport8080-><Connectorport="9080"protocol="HTTP/1.1"connectionTimeout="20000"redirectPort="8443"/><!-A"Connector"usingthesharedthreadp
66、ool-><!-<Connectorexecutor="tomcatThreadPool"port="8080"protocol="HTTP/1.1"connectionTimeout="20000"redirectPort="8443"/>-><!-DefineaSSLHTTP/1.1Connectoronport8443ThisconnectorusestheJSSEconfiguration,whenusingAPR,theconnectorshould
67、beusingtheOpenSSLstyleconfigurationdescribedintheAPRdocumentation-><!-<Connectorport="8443"protocol="HTTP/1.1"SSLEnabled="true"maxThreads="150"scheme="https"secure="true"clientAuth="false"sslProtocol="TLS"/>-
68、><!-DefineanAJP1.3Connectoronport8009-><Connectorport="9009"protocol="AJP/1.3"redirectPort="8443"/><!-AnEnginerepresentstheentrypoint(withinCatalina)thatprocesseseveryrequest.TheEngineimplementationforTomcatstandaloneanalyzestheHTTPheadersincludedwitht
69、herequest,andpassesthemontotheappropriateHost(virtualhost).Documentationat/docs/config/engine.html-><!-YoushouldsetjvmRoutetosupportload-balancingviaAJPie:<Enginename="Standalone"defaultHost="localhost"jvmRoute="jvm1">-><Enginename="Catalina"
70、defaultHost="localhost"jvmRoute="tomcat2"><!-Forclustering,pleasetakealookatdocumentationat:/docs/cluster-howto.html(simplehowto)/docs/config/cluster.html(referencedocumentation)-><!-<ClusterclassName="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>->
71、;<ClusterclassName="org.apache.catalina.ha.tcp.SimpleTcpCluster"channelSendOptions="6"><ManagerclassName="org.apache.catalina.ha.session.BackupManager”expireSessionsOnShutdown="false"notifyListenersOnReplication="true"mapSendOptions="6"
72、/><!-<ManagerclassName="org.apache.catalina.ha.session.DeltaManager"expireSessionsOnShutdown="false"notifyListenersOnReplication="true"/>-><ChannelclassName="org.apache.catalina.tribes.group.GroupChannel”><MembershipclassName="org.apache.catalina.tribes.membership.McastService"address=""
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2024-2030年全球及中国电源烟雾报警器行业销售情况及营销前景预测报告
- 2024年携手共创:房地产销售战略联盟协议
- 2024年技术工种合同:技能要求与职业培训
- 2024年健身器材专卖店加盟合同
- 2024-2030年全球及中国1,3丙二醇(PDO)行业供需现状与投资前景展望报告
- 2024-2030年全球与中国冰雪运动维修保养设备市场应用现状及需求前景预测报告
- 2024-2030年中国高端女装行业市场营销模式及投资策略分析报告
- 2024年度数据中心机房租赁合同
- 2024-2030年中国非处方药(OTC)行业竞争趋势及投资战略研究报告
- 2024-2030年中国陶瓷茶具行业市场营销模式及发展竞争力分析报告版
- 2024年安全生产知识竞赛考试题库及答案(共五套)
- 22《鸟的天堂》课件
- 农业灌溉装置市场环境与对策分析
- 新疆乌鲁木齐市第十一中学2024-2025学年八年级上学期期中道德与法治试卷
- 2024年江西省高考地理真题(原卷版)
- 部编版小学五年级上册道法课程纲要(知识清单)
- 经济法学-计分作业一(第1-4章权重25%)-国开-参考资料
- 山东省临沂市(2024年-2025年小学四年级语文)人教版期中考试(上学期)试卷及答案
- 护士2024思想汇报5篇
- 2024年新版全员消防安全知识培训
- Unit+10+Lesson+1+How+Closely+Connected+Are+We 高中英语北师大版(2019)选择性必修第四册
评论
0/150
提交评论