原文:Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to 106.xx.xxx229:6379

修改redis配置文件,注釋綁定地址,關閉保護模式 vim redis.conf ...

2020-09-27 15:14 0 974 推薦指數:

查看詳情

Unable to connect to 192.168.126.132:6379

首先檢查配置文件中的 ip 地址、端口號寫沒寫錯,因為有時候centos在待機時端口號會自己變 然后再去看redis.conf文件中看 bind 屬性, 默認情況bind=127.0.0.1只能接受本機的訪問請求 不寫的情況下,無限制接受任何ip地址的訪問 所以就把所有 ...

Fri Apr 01 21:08:00 CST 2022 0 883
Springboot集成redis Unable to connect to localhost:6379

首先排除redis服務器的問題,將redis 配置文件中的 bind 127.0.0.1 注釋掉,然后將保護模式關閉 protected-mode no ,以服務端啟動redis ./redis-server ./redis.conf 然后修改本地項目配置文件,將redis相關配置 ...

Sat Oct 09 01:03:00 CST 2021 0 365
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM