redis 远程连接问题

来源:互联网 发布:macbook删除windows 编辑:程序博客网 时间:2024/05/16 01:28

redis 配置


bind  绑定允许访问的ip 和端口


By default protected mode is enabled. You should disable it only if
# you are sure you want clients from other hosts to connect to Redis
# even if no authentication is configured, nor a specific set of interfaces
# are explicitly listed using the "bind" directive.


官方注释解释  如果你想bind 没有指定的ip 和端口访问 请设置 为no

protected-mode


最简单的方式解决:

注释掉bind

设置protected-mode no



0 0
原创粉丝点击