redis ----> 学习笔记

1、redis 教程 参考以下链接:

https://www.yiibai.com/redis/

2、window 32 Redis下载地址

https://github.com/MicrosoftArchive/redis/blob/2.6/bin/release/redisbin.zip

更详细的安装过程参考以下链接:

https://www.yiibai.com/redis/window_redis_install.html

3、Redis 数据类型 

4、Redis 常用命令

开启密码:config set requirepass yourpassword

禁用密码:config set requirepass ""

5、Redis可视化工具下载链接

https://redisdesktop.com/download

6、遇到的问题:

1)

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'enableRedisKeyspaceNotificationsInitializer' defined in org.springframework.session.data.redis.config.annotation.web.http.RedisHttpSessionConfiguration: Invocation of init method failed; nested exception is org.springframework.data.redis.RedisConnectionFailureException: Cannot get Jedis connection; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool

Caused by: org.springframework.data.redis.RedisConnectionFailureException: Cannot get Jedis connection; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool

 redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool

redis.clients.jedis.exceptions.JedisDataException: ERR Client sent AUTH, but no password is set

禁用密码可解决

2)

ERR Unsupported CONFIG parameter: notify-keyspace-events

redis版本更改成2.8以上

猜你喜欢

转载自www.cnblogs.com/mrray1105/p/8970538.html
今日推荐