原文: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