redis 远程连接问题

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



猜你喜欢

转载自blog.csdn.net/jiewenike/article/details/60334230