您的位置:首页 > 数据库 > Redis

redis 远程连接问题

2017-03-04 17:42 190 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: