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

来自:网络
时间:2022-08-08
阅读:
免费资源网 - https://freexyz.cn/
目录

描述: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

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

 二、软件版本

IDEA 2020.1

Redis 2021

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

 linux Redis 服务端  6.2.1

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

 Xshell 5

VM Ware 15.5.1

MYSQL 8.0

三、基本信息

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

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

2. 配置文件无空格

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

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

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

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

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

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

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

五、其他信息

idea  application.yml配置信息

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

免费资源网 - https://freexyz.cn/
返回顶部
顶部