xiaolongyuan / shiro-redis-session

使用redis作为shiro实现集群会话管理
97 stars 52 forks source link

集群环境登陆存在异常 #3

Open kyne0116 opened 7 years ago

kyne0116 commented 7 years ago

基础组件: 操作系统RedHat6.5 Redis3.2.5 Tomcat7.0.67 Nginx1.11.1 测试应用:shiro-session-redis-web

部署架构:34、35、36同时安装Tomcat,34安装Redis,36安装Nginx

Nginx配置

http {
    include       mime.types;
    default_type  application/octet-stream;

    upstream app_server_cluster {
        server 10.10.1.34:8080 weight=10 max_fails=2 fail_timeout=30s;
        server 10.10.1.35:8080 weight=10 max_fails=2 fail_timeout=30s;
        #server 10.10.1.36:8080 weight=10 max_fails=2 fail_timeout=30s;
    }

    server {
        listen       8088;
        server_name  localhost;

        root   html;
        index  index.html index.htm;

        location / {
            proxy_pass http://app_server_cluster;
        }
    }

}
xiaolongyuan commented 7 years ago

是已选型 shiro 这个框架?

kyne0116 commented 7 years ago

嗯,目前基于shiro做的权限认证