F5 负载均衡4

  1.               <!-- Normally, users must authenticate themselves to each web app             individually.  Uncomment the following entry if you would like             a user to be authenticated the first time they encounter a             resource protected by a security constraint, and then have that             user identity maintained across *all* web applications contained             in this virtual host. -->  
  2.                 <!--        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />        -->  
  3.                 <!-- Access log processes all requests for this virtual host.  By             default, log files are created in the "logs" directory relative to             $CATALINA_HOME.  If you wish, you can specify a different             directory with the "directory" attribute.  Specify either a relative             (to $CATALINA_HOME) or absolute path to the desired directory.        -->  
  4.                 <!--        <Valve className="org.apache.catalina.valves.AccessLogValve"                 directory="logs"  prefix="localhost_access_log." suffix=".txt"                 pattern="common" resolveHosts="false"/>        -->  
  5.                 <!-- Access log processes all requests for this virtual host.  By             default, log files are created in the "logs" directory relative to             $CATALINA_HOME.  If you wish, you can specify a different             directory with the "directory" attribute.  Specify either a relative             (to $CATALINA_HOME) or absolute path to the desired directory.             This access log implementation is optimized for maximum performance,             but is hardcoded to support only the "common" and "combined" patterns.        -->  
  6.                 <!--        <Valve className="org.apache.catalina.valves.FastCommonAccessLogValve"                 directory="logs"  prefix="localhost_access_log." suffix=".txt"                 pattern="common" resolveHosts="false"/>        -->  
  7.             </Host>  
  8.         </Engine>  
  9.     </Service>  
  10. </Server>  


 

关于tomcat,你可以复制多份进行测试,也可以修改server.xml,添加多个实例进行运行,但是为了更直观的查看建议复制多份。

修改tomcat的Context.xml文件 打开全局session复制

<Context  distributable="true">
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值