forked from wjw465150/RedisManager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
21 lines (17 loc) · 1.02 KB
/
Copy pathREADME
File metadata and controls
21 lines (17 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
实现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"
/>