linux 中redis报错

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

复制代码
改成这样host: 127.0.0.1
复制代码
redis:
  # 地址
  host: 127.0.0.1
  # 端口,默认为6379
  port: 6379
  # 数据库索引
  database: 0
  # 密码
  password:
  # 连接超时时间
  timeout: 3000ms
  lettuce:
    pool:
      # 连接池中的最小空闲连接
      min-idle: 0
      # 连接池中的最大空闲连接
      max-idle: 8
      # 连接池的最大数据库连接数
      max-active: 20
      # #连接池最大阻塞等待时间(使用负值表示没有限制)
      max-wait: -1
相关推荐
土狗TuGou14 小时前
SQL内功笔记 · 第6篇:窗口函数的使用ROW_NUMBER等
java·数据库·后端·sql·mysql
川石课堂软件测试14 小时前
使用mock进行接口测试教程
数据库·python·功能测试·测试工具·华为·单元测试·appium
Solis程序员14 小时前
MongoDB 超全入门到实战:从原理、CRUD到高可用架构
数据库·mongodb·架构
yurenpai(27届找实习中)14 小时前
redis_点评(26.附近店铺——实现附近商家功能)
数据库·spring boot·redis
BullSmall14 小时前
异构数据库(通俗 + 核心知识点)
数据库
Rick199314 小时前
索引下推(ICP):在已经用到联合索引的前提下,减少回表次数,提升查询效率
数据库
金海境科技14 小时前
实践分享!虚拟化数据恢复前三标准
数据库
不剪发的Tony老师15 小时前
RedisME:一个现代化、轻量级Redis管理工具
数据库·redis
消失的旧时光-194315 小时前
企业认证与安全体系(四):企业登录认证流程全解析——JWT、Redis、Spring Security 如何协同工作?
redis·安全·spring·spring security·jwt
愤怒的苹果ext15 小时前
Spring Boot Redis Stream队列
spring boot·redis·消息队列·stream