学无先后,达者为师

网站首页 编程语言 正文

关于redis客户端连接不上

作者:Terence Wang 更新时间: 2022-04-05 编程语言

链接服务器的Redis(由于远程连接不上,使用服务器连接,也连接不上产生)

Unable to connect to remote host: Connection refused

连接不上,有可能是服务没有对外开放。

1. 修改redis配置:redis.conf.

路径:C:\develop\Redis-x64-5.0.14\redis.windows.conf

步骤一:注释掉redis.window.conf文件中的bind属性设置

步骤二:把protected-mode属性设置no

2. 修改密码

修改redis.windows.conf配置文件

指定密码123

# requirepass foobared
requirepass 123

3、重启redis

redis-server.exe redis.windows.conf

 

原文链接:https://blog.csdn.net/qq_39997939/article/details/122790134

栏目分类
最近更新