Redis配置
主从都需要配置,白名单
配置/usr/weaver/ecology/WEB-INF/prop/weaver_new_session.properties中以下属性: status =1
enableImmediatelySync = true className = weaver.session.util.RedisSessionUtil redisIp = 192.168.xxx.xxx redisPassword = xxx redisPort = 6379
redisIp 是redis服务器的ip地址,redisPassword是实际的密码
配置/usr/weaver/ecology/WEB-INF/web.xml拦截器 web.xml增加以下配置,放在文件最前面
<filter> <filter-name>WSessionClusterFilter</filter-name> <filter-class>weaver.session.WSessionClusterFilter</filter-class> </filter> <filter-mapping> <filter-name>WSessionClusterFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>配置好后启动Resin服务,能够正常登录即可。