SpringBoot集成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配置信息

您可能感兴趣的文章
- 12-22使用mysql记录从url返回的http GET请求数据操作
- 12-22详解sql中exists和in的语法与区别
- 12-22hive从mysql导入数据量变多的解决方案
- 12-22如何为PostgreSQL的表自动添加分区
- 12-22postgresql 实现得到时间对应周的周一案例
- 12-22sqoop export导出 map100% reduce0% 卡住的多种原因及解决
- 12-22mysql查询条件not in 和 in的区别及原因说明
- 12-22解决mysql使用not in 包含null值的问题
- 12-22解决从集合运算到mysql的not like找不出NULL的问题
- 12-22postgresql 实现多表关联删除


阅读排行
推荐教程
- 12-11mysql代码执行结构实例分析【顺序、分支、循环结构】
- 12-08添加mysql的用户名和密码是什么语句?
- 12-20PhpMyAdmin出现错误数据无法导出怎么办?
- 12-19Redis中实现查找某个值的范围
- 12-15浅析mysql迁移到clickhouse的5种方法
- 12-15CentOS7 64位下MySQL5.7安装与配置教程
- 12-14Mysql大型SQL文件快速恢复方案分享
- 12-14mysql 5.7.27 安装配置方法图文教程
- 12-13MySQL给新建用户并赋予权限最简单的方法
- 12-13关于MySQL索引的深入解析





