apache+tomcat负载均衡

  • w6_111002
    了解作者
  • 22.4KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-04-07 03:50
    上传日期
apache+tomcat负载均衡,有案例,很齐全
apache+tomcat负载均衡.rar
  • apache+tomcat负载均衡
  • test
  • WEB-INF
  • web.xml
    347B
  • index.jsp
    1.1KB
  • httpd.conf
    18.5KB
  • apache+tomcat6负载均衡.doc
    34KB
  • server_ndoe2.xml
    6.7KB
  • server_node1.xml
    6.7KB
内容介绍
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <meta name="generator" content="pdf2htmlEX"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <link rel="stylesheet" href="https://static.pudn.com/base/css/base.min.css"> <link rel="stylesheet" href="https://static.pudn.com/base/css/fancy.min.css"> <link rel="stylesheet" href="https://static.pudn.com/prod/directory_preview_static/626b0f2f7ae5df2aa7f2de68/raw.css"> <script src="https://static.pudn.com/base/js/compatibility.min.js"></script> <script src="https://static.pudn.com/base/js/pdf2htmlEX.min.js"></script> <script> try{ pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({}); }catch(e){} </script> <title></title> </head> <body> <div id="sidebar" style="display: none"> <div id="outline"> </div> </div> <div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/626b0f2f7ae5df2aa7f2de68/bg1.jpg"><div class="c x0 y1 w2 h2"><div class="t m0 x1 h3 y2 ff1 fs0 fc0 sc0 ls0 ws0">1<span class="ff2">&#12289;<span class="_ _0"> </span>&#36127;&#36733;&#22343;&#34913;&#27169;&#24335;&#65306;</span>mod_proxy</div><div class="t m0 x1 h3 y3 ff1 fs0 fc0 sc0 ls0 ws0">2<span class="ff2">&#12289;<span class="_ _0"> </span></span>apache<span class="_ _0"> </span><span class="ff2">&#29256;&#26412;&#65306;</span>httpd-2.2.25</div><div class="t m0 x1 h3 y4 ff1 fs0 fc0 sc0 ls0 ws0">3<span class="ff2">&#12289;<span class="_ _0"> </span></span>tomcat<span class="_ _0"> </span><span class="ff2">&#29256;&#26412;&#65306;</span>apache-tomcat-6.0.37<span class="_ _0"> </span><span class="ff2">&#35299;&#21387;&#29256;</span></div><div class="t m0 x1 h3 y5 ff1 fs0 fc0 sc0 ls0 ws0">4<span class="ff2">&#12289;<span class="_ _0"> </span>&#20462;&#25913;<span class="_ _0"> </span></span>apache<span class="_ _0"> </span><span class="ff2">&#37197;&#32622;&#65306;</span></div><div class="t m0 x2 h4 y6 ff1 fs0 fc0 sc0 ls0 ws0">conf/httpd.conf</div><div class="t m0 x2 h3 y7 ff2 fs0 fc0 sc0 ls0 ws0">&#21435;&#25481;&#34892;&#21069;&#38754;&#30340;<span class="ff1">#</span>&#20197;&#25171;&#24320;&#19979;&#38754;&#37197;&#32622;&#65306;</div><div class="t m0 x2 h4 y8 ff1 fs0 fc0 sc0 ls0 ws0">LoadModule proxy_module modules/mod_proxy<span class="_ _1"></span>.so</div><div class="t m0 x2 h4 y9 ff1 fs0 fc0 sc0 ls0 ws0">LoadModule proxy_ajp_module modules/mod_proxy_ajp.so</div><div class="t m0 x2 h4 ya ff1 fs0 fc0 sc0 ls0 ws0">LoadModule proxy_balancer_module modules/mod_proxy_balancer<span class="_ _1"></span>.so</div><div class="t m0 x2 h4 yb ff1 fs0 fc0 sc0 ls0 ws0">LoadModule proxy_connect_module modules/mod_proxy_connect.so</div><div class="t m0 x2 h4 yc ff1 fs0 fc0 sc0 ls0 ws0">LoadModule proxy_ftp_module modules/mod_proxy_ftp.so</div><div class="t m0 x2 h4 yd ff1 fs0 fc0 sc0 ls0 ws0">LoadModule proxy_http_module modules/mod_proxy_http.so</div><div class="t m0 x2 h3 ye ff2 fs0 fc0 sc0 ls0 ws0">&#25991;&#20214;&#26368;&#21518;&#21152;&#20837;&#19979;&#38754;&#20869;&#23481;&#65306;</div><div class="t m0 x2 h4 yf ff1 fs0 fc0 sc0 ls0 ws0">&lt;V<span class="_ _1"></span>irtualHost *:80&gt; </div><div class="t m0 x3 h4 y10 ff1 fs0 fc0 sc0 ls0 ws0">ServerAdmin [email]xxxx@126.com[/email] </div><div class="t m0 x3 h4 y11 ff1 fs0 fc0 sc0 ls0 ws0">ServerName localhost </div><div class="t m0 x3 h4 y12 ff1 fs0 fc0 sc0 ls0 ws0">ServerAlias localhost </div><div class="t m0 x3 h4 y13 ff1 fs0 fc0 sc0 ls0 ws0">ProxyPass / balancer://mycluster/ stickysession=JSESSIONID nofailover=Of<span class="_ _2"></span>f </div><div class="t m0 x3 h4 y14 ff1 fs0 fc0 sc0 ls0 ws0">ProxyPassReverse / balancer://mycluster/ </div><div class="t m0 x3 h4 y15 ff1 fs0 fc0 sc0 ls0 ws0">ErrorLog "logs/error<span class="_ _1"></span>.log" </div><div class="t m0 x3 h4 y16 ff1 fs0 fc0 sc0 ls0 ws0">CustomLog "logs/access.log" common </div><div class="t m0 x2 h4 y17 ff1 fs0 fc0 sc0 ls0 ws0">&lt;/V<span class="_ _1"></span>irtualHost&gt;</div><div class="t m0 x2 h4 y18 ff1 fs0 fc0 sc0 ls0 ws0">ProxyRequests Of<span class="_ _2"></span>f </div><div class="t m0 x2 h4 y19 ff1 fs0 fc0 sc0 ls0 ws0">&lt;proxy balancer://mycluster&gt; </div><div class="t m0 x3 h4 y1a ff1 fs0 fc0 sc0 ls0 ws0">BalancerMember ajp://127.0.0.1:41 loadfactor=1 route=tomcat6_node1 </div><div class="t m0 x3 h4 y1b ff1 fs0 fc0 sc0 ls0 ws0">BalancerMember ajp://127.0.0.1:42 loadfactor=1 route=tomcat6_node2 </div><div class="t m0 x3 h3 y1c ff1 fs0 fc0 sc0 ls0 ws0"># status=+H<span class="_ _0"> </span><span class="ff2">&#20026;&#37197;&#32622;&#28909;&#22791;&#65292;&#24403;&#25152;&#26377;&#26426;&#22120;&#37117;<span class="_ _0"> </span></span>over<span class="_ _0"> </span><span class="ff2">&#26102;&#65292;&#25165;&#20250;&#35831;&#27714;&#35813;&#26426;&#22120;</span> </div><div class="t m0 x3 h4 y1d ff1 fs0 fc0 sc0 ls0 ws0">#BalancerMember http://192.168.1.218:8009 status=+H </div><div class="t m0 x3 h3 y1e ff1 fs0 fc0 sc0 ls0 ws0">#<span class="ff2">&#25353;&#29031;&#35831;&#27714;&#27425;&#25968;&#22343;&#34913;</span>(<span class="ff2">&#40664;&#35748;</span>) </div><div class="t m0 x3 h4 y1f ff1 fs0 fc0 sc0 ls0 ws0">#ProxySet lbmethod=byrequests </div><div class="t m0 x3 h3 y20 ff1 fs0 fc0 sc0 ls0 ws0">#<span class="ff2">&#25353;&#29031;&#26435;&#37325;</span> </div><div class="t m0 x3 h4 y21 ff1 fs0 fc0 sc0 ls0 ws0">#ProxySet lbmethod=bytraffic </div><div class="t m0 x3 h3 y22 ff1 fs0 fc0 sc0 ls0 ws0">#<span class="ff2">&#25353;&#36127;&#36733;&#37327;&#65292;&#20063;&#23601;&#26159;&#24448;&#36127;&#36733;&#23569;&#30340;&#27966;&#21457;&#26032;&#35831;&#27714;</span> </div><div class="t m0 x3 h4 y23 ff1 fs0 fc0 sc0 ls0 ws0">#ProxySet lbmethod=bybusyness </div><div class="t m0 x3 h4 y24 ff1 fs0 fc0 sc0 ls0 ws0">ProxySet lbmethod=bybusyness </div><div class="t m0 x2 h4 y25 ff1 fs0 fc0 sc0 ls0 ws0">&lt;/proxy&gt;</div><div class="t m0 x4 h3 y26 ff2 fs0 fc0 sc0 ls0 ws0">&#35828;&#26126;&#65306;</div><div class="t m0 x4 h3 y27 ff2 fs0 fc0 sc0 ls0 ws0">&#20854;&#20013;<span class="_ _0"> </span><span class="ff1">V<span class="_ _1"></span>irtualHost *:80<span class="_ _0"> </span><span class="ff2">&#20195;&#34920;&#31508;&#32773;&#26412;&#26426;&#30340;<span class="_ _0"> </span></span>http server<span class="_ _0"> </span><span class="ff2">&#31471;&#21475;&#12290;</span></span></div><div class="t m0 x4 h3 y28 ff1 fs0 fc0 sc0 ls0 ws0">ProxyPass <span class="_ _3"></span>/ <span class="_ _3"></span>balancer://mycluster/<span class="_ _3"></span><span class="ff2">&#20195;<span class="_ _3"></span>&#34920;<span class="_ _3"></span>&#25152;<span class="_ _3"></span>&#26377;<span class="_ _3"></span>&#30340;<span class="_ _3"></span>&#35831;<span class="_ _3"></span>&#27714;<span class="_ _3"></span>&#37117;<span class="_ _3"></span>&#20250;<span class="_ _3"></span>&#37325;<span class="_ _3"></span>&#23450;<span class="_ _3"></span>&#21521;<span class="_ _3"></span>&#21040;<span class="_ _4"> </span></span>balancer://mycluster/<span class="_ _3"></span><span class="ff2">&#22788;<span class="_ _3"></span>&#29702;<span class="_ _3"></span>&#12290;</span></div><div class="t m0 x4 h3 y29 ff1 fs0 fc0 sc0 ls0 ws0">balancer<span class="_ _0"> </span><span class="ff2">&#26159;&#20869;&#32622;&#36127;&#36733;&#12290;</span></div></div></div><div class="pi" data-data='{"ctm":[1.611850,0.000000,0.000000,1.611850,0.000000,0.000000]}'></div></div> </body> </html>
评论
    相关推荐