springBoot + springSession + redis 实现项目登录用户的session共享
以及单点登录功能
-
下载安装redis数据库
直接下载redis数据库安装文件,windows版本。百度网盘地址:[https://pan.baidu.com/s/1IWkTMXsN6zB7zU_jnCPBJw] -
启动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 -
使用redisDesktopManager管理数据库
使用redis管理工具管理redis数据库,默认的数据库地址127.0.0.1:6379 账号:root 密码:null 使用的数据库版本3.2.1000