GithubHelp home page GithubHelp logo

xiaolongyuan / shiro-redis-session Goto Github PK

View Code? Open in Web Editor NEW
97.0 14.0 52.0 2.04 MB

使用redis作为shiro实现集群会话管理

Java 35.35% CSS 1.63% HTML 9.91% JavaScript 47.05% CoffeeScript 6.05%

shiro-redis-session's Introduction

使用redis作为shiro实现集群会话管理,并可配置ehcache作为进程内缓存,通过redis消息订阅发布实现session缓存统一

  • shiro-redis-session
    • jar
  • shiro-redis-session-webapp
    • 示例demo

IDEA 需安装 lombok 插件

插件介绍 https://projectlombok.org/

###Issues: https://github.com/xiaolongyuan/shiro-redis-session/issues ###RoadMap:

  • 修复已知问题
  • 添加accessToken使用及示例

###主要参考: https://github.com/sgq0085/learn 替换redis使用为spring data redis

###推荐文章:

###项目依赖:

shiro 1.2.3+ spring data redis 1.6.0+

###github 地址

https://github.com/xiaolongyuan/shiro-redis-session

###oschina 地址

http://git.oschina.net/xiaolongyuan/shiro-redis-session

shiro-redis-session's People

Contributors

xiaolongyuan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

shiro-redis-session's Issues

集群环境登陆存在异常

基础组件:
操作系统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;
        }
    }

}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.