Tomcat基於Redis的Session共享

1,安裝redis   tomcat(兩臺)git

2,下載    github

    Commons-Pool:redis

                http://apache.dataguru.cn//commons/pool/binaries/commons-pool2-2.3-bin.zipapache

                  http://jakarta.apache.org/commons/pool/tomcat

   Jedis:session

                  https://github.com/xetorthio/jedis/archive/master.zip spa

                  https://github.com/xetorthio/jedisxml

    tomcat-redis-session-manager:ip

                https://github.com/downloads/jcoleman/tomcat-redis-session-manager/tomcat-redis-session-manager-1.2-tomcat-7.jar ci

                  https://github.com/jcoleman/tomcat-redis-session-manager/downloads

將這些jar包都丟到tomcat的lib目錄下,而後配置context.xml了,將以下內容添加到context.xml中 

相關文章
相關標籤/搜索