springboot连接redis错误 io.lettuce.core.RedisCommandTimeoutException:

Posted Mr.lang?

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了springboot连接redis错误 io.lettuce.core.RedisCommandTimeoutException:相关的知识,希望对你有一定的参考价值。

springboot连接redis报错 超时连接不上  可以从以下方面排查

1查看自己的配置文件信息,把超时时间不要设置0毫秒 设置5000毫秒

 

 

2redis服务长时间不连接就会休眠,也会连接不上 重新启动redis服务《黑窗口》

 

以上是关于springboot连接redis错误 io.lettuce.core.RedisCommandTimeoutException:的主要内容,如果未能解决你的问题,请参考以下文章

Redis 连接 [缓存] 未配置 laravel 错误

springboot连接redis错误 io.lettuce.core.RedisCommandTimeoutException:

redis 外网连接错误

redis成功链接本地redis服务器时返回

Java 连接操作 Redis 出现错误

AWS Lambda:Redis ElastiCache 连接超时错误