美文网首页
nginx和tomcat 集群使用redis 保证session

nginx和tomcat 集群使用redis 保证session

作者: 张航_8ee7 | 来源:发表于2018-01-26 16:24 被阅读0次

    参考博客:

    https://www.cnblogs.com/zhangzhi0556/articles/5366885.html

    在上个版本的基础上我们继续改造。

    就这 4 步。

    首先 我们去 

    https://github.com/ran-jit/tomcat-cluster-redis-session-manager/releases/tag/2.0.2 下载  

    这个jar包。

    然后并其他3个包一块扔到 lib里。

    在这里修改自己的redis 信息。

    扔到 conf 里。

    最后两部根据上面来。

    测试结果如下:

    1 2 3 4

    代码 地址如下。拿来就能用。

    http://download.csdn.net/download/qq_34272495/10225868

    相关文章

      网友评论

          本文标题:nginx和tomcat 集群使用redis 保证session

          本文链接:https://www.haomeiwen.com/subject/lfrwaxtx.html