问题:
报错ERR Unsupported CONFIG parameter: notify-keyspace-events
原因:
redis版本与spring session冲突
解决方案:
更换redis版本为2.8以上
安装redis3.2版本:
1、到redis官网下载redis-3.2.11.tar.gz
2、解压tar -zxvfredis-3.2.11.tar.gz
3、编译测试:sudo make test
4、redis安装: sudo make install
启动:redis-server &
redis-cli 查看是否启动成功
$ src/redis-cli
redis> set foo bar
OK
redis> get foo
"bar"
redis> ping
popng
redis> dbsze
0
redis默认端口6379
/usr/local/bin 目录下有redis相关的
-rwxr-xr-x 1 root admin 100276 12 20 16:07 redis-benchmark*
-rwxr-xr-x 1 root admin 14704 12 20 16:07 redis-check-aof*
-rwxr-xr-x 1 root admin 1053376 12 20 16:07 redis-check-rdb*
-rwxr-xr-x 1 root admin 163360 12 20 16:07 redis-cli*
lrwxr-xr-x 1 root admin 12 12 20 16:07 redis-sentinel@ -> redis-server
-rwxr-xr-x 1 root admin 1053376 12 20 16:07 redis-server*