1、安装2套Tomcat,在同一服务器,修改对应的端口号不同 2、安装redis在服务器
1、拷贝 commons
-pool2
-2.2.jar、jedis
-2.5.2.jar 、 tomcat85
-session
-redis
-1.0.jar到tomcat安装目录的lib目录下
2、 修改tomcat目录下的conf
/context
.xml,在其中加入下面代码,注意修改ip和端口
<Valve className
="com.orangefunction.tomcat.redissessions.RedisSessionHandlerValve" />
<Manager className
="com.orangefunction.tomcat.redissessions.RedisSessionManager"
host
="localhost"
port
="6379"
password
="offcn123"
database
="0"
maxInactiveInterval
="60"
/>
转载请注明原文地址:https://ipadbbs.8miu.com/read-62363.html