日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學無先后,達者為師

網站首頁 編程語言 正文

SpringBoot集成redis錯誤問題及解決方法_Redis

作者:妙趣生花 ? 更新時間: 2022-04-25 編程語言

描述: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配置信息

原文鏈接:https://blog.csdn.net/nanyangnongye/article/details/123027793

欄目分類
最近更新