源代码网址:http://www.github.com/chexagon/redis-session-manager
本次tomcat版本为8,非8.5,如8.5需要重新编译jar包
在 tomcat/lib 中增加以下jar包
可能版本号会不一致
1 2 3
| commons-pool2-2.2.jar jedis-2.5.2.jar redis-session-manager-with-dependencies-2.2.2-SNAPSHOT.jar
|
依赖软件下载地址:
1
| https://pan.baidu.com/s/1r5qGw2v8wpUUJvaX8Bz9Iw
|
修改tomcat/conf/context.xml, 增加以下内容
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| <Connector port="18080" protocol="HTTP/1.1" maxHttpHeaderSize="8192" enableLookups="false" disableUploadTimeout="true" maxThreads="500" minSpareTherads="100" maxSpareThreads="200" acceptCount="2000" minProcessors="200" maxProcessors="1000" compression="on" compressionMinSize="2048" compressableMimeType="text/html,text/xml,text/javascript,text/css,text/plain" connectionTimeout="900000" server="App Srv 1.0" redirectPort="8443" />
|
备注:具体使用方法可参考作者介绍,具体问题具体分析