1 Star 3 Fork 0

初学者 / tomcat-redis-session-manager

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.en.md

tomcat-redis-session-manager


tomcat版本

tomcat8集群redis session共享解决方案 支持tomcat8.5,没有对tomcat8.0、tomcat7做测试

用法

添加下面的配置到tomcat的context.xml中【单机redis】

<Valve className="com.seejoke.tomcat.redissessions.RedisSessionHandlerValve"/> 
<Manager className="com.seejoke.tomcat.redissessions.RedisSessionManager" 
		  host="127.0.0.1"
		  port="6379"
		  database="0" 
		  password="123456"
		  maxInactiveInterval="1800" /> 

添加下面的配置到tomcat的context.xml中【集群redis】

<Valve className="com.seejoke.tomcat.redissessions.RedisSessionHandlerValve" />                                                                                                            
<Manager className="com.seejoke.tomcat.redissessions.RedisSessionManager"
        sentinelMaster="mymaster"
        sentinels="172.19.80.3:26379,172.19.80.4:26379,172.19.80.5:26379"
        database="2"
        password="123456"
       maxInactiveInterval="3600" />

复制下面的文件到TOMCAT_BASE/lib目录:

  • tomcat-redis-session-manager.jar
  • jedis-2.8.2.jar
  • commons-pool2-2.2.jar

感谢

此版本修改自 https://github.com/jcoleman/tomcat-redis-session-manager

Comments ( 0 )

Sign in for post a comment

About

tomcat8集群redis session共享解决方案 spread retract
Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more
Java
1
https://git.oschina.net/diaodiaofly/tomcat-redis-session-manager.git
git@git.oschina.net:diaodiaofly/tomcat-redis-session-manager.git
diaodiaofly
tomcat-redis-session-manager
tomcat-redis-session-manager
master

Search

103611 48b8ff67 1899542 103622 4d02230c 1899542