SpringBoot集成redis错误问题及如何解决方法

描述:SpingBoot 集成Reids (本机连接虚拟机Redis服务)出现错误 哇咔咔 当你距离成功只有一步的时候 论那个时候的心情 七上八下!!!! 一、

描述:SpingBoot 集成Reids (本机连接虚拟机Redis服务)出现错误 哇咔咔 当你距离成功只有一步的时候 论那个时候的心情 七上八下!!!!

一、错误信息

org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis; nested exception is org.springframework.data.redis.connection.PoolException: Could not get a resource from the pool; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to 192.168.184.130:6379

 二、软件版本

IDEA 2020.1

Redis 2021

 linux Redis 服务端  6.2.1

 Xshell 5

VM Ware 15.5.1

MYSQL 8.0

三、基本信息

1. 本机客户端能成功连接Redis

2. 配置文件无空格

3. 防火墙是关闭状态 四、解决

# vim /etc/redis.conf  命令添加 requirepass root 

这样设置明文密码有一个已知问题就是

redis-cli 命令ping不通 然后执行auth "密码"就可以了

五、其他信息

idea  application.yml配置信息

到此这篇关于SpringBoot集成redis错误的文章就介绍到这了,更多相关SpringBoot集成redis内容请搜索好代码网以前的文章或继续浏览下面的相关文章希望大家以后多多支持好代码网!