redis ----> study notes

1. Refer to the following link for the redis tutorial:

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

2, window 32 Redis download address

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

For more detailed installation procedures, refer to the following links:

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

3. Redis data types 

4. Redis common commands

Enable password: config set requirepass yourpassword

Disable password: config set requirepass ""

5. Redis visualization tool download link

https://redisdesktop.com/download

6. Problems encountered:

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

Disabling the password solved it

2)

ERR Unsupported CONFIG parameter: notify-keyspace-events

Change the redis version to 2.8 or above

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325213676&siteId=291194637