forked from wjw465150/RedisManager
alw8829/RedisManager
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
实现RedisManager继承 org.apache.catalina.session.StandardManager, RedisSession继承 org.apache.catalina.session.StandardSession。 安装步骤: 1. 复制:wjw-redismanager.jar,(kryo-all,redis,common-pool加入到内部引用) 到x:\apache-tomcat-6.X.XX\lib下面 2. x:\apache-tomcat-6.X.XX\conf下文件server.xml中更改<Engine>添加jvmRoute属性: <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm${节点号}"> 3. x:\apache-tomcat-6.X.XX\conf下文件context.xml中添加: <!-- use redis keep session --> <Manager pathname="" className="org.apache.catalina.session.ext.RedisManager" stickySession="true" serverlist="${ip1}:${port1},${ip2}:${port2}" minConn="5" maxConn="100" socketTO="6000" debug="false" /> 当需要验证时这样添加: <!-- use redis keep session --> <Manager pathname="" className="org.apache.catalina.session.ext.RedisManager" stickySession="true" serverlist="${ip1}:${port1}:${password1},${ip2}:${port2}:${password2}" minConn="5" maxConn="100" socketTO="6000" debug="false" />
About
cluster Tomcat 6.x,use redis store session
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published