Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Outline

使用redis实现单点登录功能

springBoot + springSession + redis 实现项目登录用户的session共享
以及单点登录功能

redis的安装使用

  1. 下载安装redis数据库

     直接下载redis数据库安装文件,windows版本。百度网盘地址:[https://pan.baidu.com/s/1IWkTMXsN6zB7zU_jnCPBJw]
    
  2. 启动redis服务

     下载解压文件直接运行start.bat启动文件,启动redis。
     
     D:\redis>redis-server.exe redis.windows.conf
                     _._
                _.-``__ ''-._
           _.-``    `.  `_.  ''-._           Redis 3.2.100 (00000000/0) 64 bit
       .-`` .-```.  ```\/    _.,_ ''-._
      (    '      ,       .-`  | `,    )     Running in standalone mode
      |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
      |    `-._   `._    /     _.-'    |     PID: 16980
       `-._    `-._  `-./  _.-'    _.-'
      |`-._`-._    `-.__.-'    _.-'_.-'|
      |    `-._`-._        _.-'_.-'    |           http://redis.io
       `-._    `-._`-.__.-'_.-'    _.-'
      |`-._`-._    `-.__.-'    _.-'_.-'|
      |    `-._`-._        _.-'_.-'    |
       `-._    `-._`-.__.-'_.-'    _.-'
           `-._    `-.__.-'    _.-'
               `-._        _.-'
                   `-.__.-'
     
     [16980] 02 Oct 09:42:23.851 # Server started, Redis version 3.2.100
     [16980] 02 Oct 09:42:23.856 * DB loaded from disk: 0.002 seconds
     [16980] 02 Oct 09:42:23.856 * The server is now ready to accept connections on port 6379
    
  3. 使用redisDesktopManager管理数据库

    使用redis管理工具管理redis数据库,默认的数据库地址127.0.0.1:6379
    账号:root 密码:null 使用的数据库版本3.2.1000
    
Morty Proxy This is a proxified and sanitized view of the page, visit original site.