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

學(xué)無(wú)先后,達(dá)者為師

網(wǎng)站首頁(yè) 編程語(yǔ)言 正文

SpringBoot集成redis錯(cuò)誤問(wèn)題及解決方法_Redis

作者:妙趣生花 ? 更新時(shí)間: 2022-04-25 編程語(yǔ)言

描述:SpingBoot 集成Reids (本機(jī)連接虛擬機(jī)Redis服務(wù))出現(xiàn)錯(cuò)誤 哇咔咔 當(dāng)你距離成功只有一步的時(shí)候 論那個(gè)時(shí)候的心情 七上八下!!!!

一、錯(cuò)誤信息

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 服務(wù)端? 6.2.1

?Xshell 5

VM Ware 15.5.1

MYSQL 8.0

三、基本信息

1. 本機(jī)客戶端能成功連接Redis

2. 配置文件無(wú)空格

3. 防火墻是關(guān)閉狀態(tài) 四、解決

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

這樣設(shè)置明文密碼有一個(gè)已知問(wèn)題就是

redis-cli 命令ping不通 然后執(zhí)行auth "密碼"就可以了

五、其他信息

idea? application.yml配置信息

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

欄目分類
最近更新