Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to
时间: 2023-10-21 14:22:57 浏览: 223
Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to 127.0.0.1:6379 是一个Redis连接失败的异常信息。根据引用,这个异常可能是由于无法连接到Redis服务器导致的。根据引用,在Java连接Redis时,可能需要对Redis进行一些配置,例如修改redis.conf文件中的protected-mode配置项为no,注释掉bind 127.0.0.1这一行,并设置连接密码requirepass。重新启动Redis服务器后,尝试重新连接即可。另外,根据引用,默认情况下,Redis只支持本地访问,所以需要将bind 127.0.0.1这一行注释掉,才能允许其他机器连接到Redis服务器。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException:](https://blog.csdn.net/qq_45745319/article/details/123754785)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [连接本机redis报错Unable to connect to Redis](https://blog.csdn.net/ooyyaa6561/article/details/127663704)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文