1.将附件jar包放入tomcat lib目录
2.tomcat/conf 下面,配置context.xml
<Valve className="com.radiadesign.catalina.session.RedisSessionHandlerValve" />
<Manager className="com.radiadesign.catalina.session.RedisSessionManager"
host="192.168.1.218"
port="6379"
database="1"
maxInactiveInterval="60" /> (此处写的是redis链接地址)
3.tomcat/conf server.xml文件不要配置jvmroute
4.nginx也不需要配置
jvm_route $cookie_JSESSIONID|sessionid reverse;