Tomcat基于Redis的Session共享

1,安装redis   tomcat(两台)

2,下载    

    Commons-Pool:

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

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

   Jedis:

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

                  https://github.com/xetorthio/jedis

    tomcat-redis-session-manager:

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

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

将这些jar包都丢到tomcat的lib目录下,然后配置context.xml了,将如下内容添加到context.xml中 


你可能感兴趣的:(Tomcat基于Redis的Session共享)