初学分布式---redis的使用问题--->redis卡住导致系统重启失败或者报出500

报错记录

2021-12-20 10:09:15.103  WARN 16352 --- [           main] 
ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'enableRedisKeyspaceNotificationsInitializer' defined in class path resource 
[org/springframework/session/data/redis/config/annotation/web/http/RedisHttpSessionConfiguration.class]: 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

ConditionEvaluationReportLoggingListener : 

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-12-20 10:09:18.270 ERROR 16352 --- [           main] o.s.b.SpringApplication                  : Application run failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'enableRedisKeyspaceNotificationsInitializer' defined in class path resource [org/springframework/session/data/redis/config/annotation/web/http/RedisHttpSessionConfiguration.class]: 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

redis卡住报出的问题,一开始刚遇到的时候都是关掉Windows的redis黑白窗口启动,然后再双击bat重启
初学分布式---redis的使用问题--->redis卡住导致系统重启失败或者报出500_第1张图片

但是这没有必要,进入启动黑白窗口---->看看如果没有报错—>按Ctrl+C(一般就没有问题了)

启动redis-cli.exe–>黑白窗口内set key value—>get key看看能不能get到valeu!
初学分布式---redis的使用问题--->redis卡住导致系统重启失败或者报出500_第2张图片

你可能感兴趣的:(编程过程中的问题及解决办法总结,关于分布式uhi2,redis,分布式,缓存)