官方地址:https://redis.io/topics/config/
Redis3.2版本后新增protected-mode配置
protected-mode值
效果
no
关闭protected-mode模式,此时外部网络可以直接访问
yes(默认)
开启protected-mode保护模式,需配置bind ip或者设置访问密码
说明:
想要在外部访问服务器中的Redis
除了需要设置protected-mode no,还需要将redis.conf文件中的bind:127.0.0.1语句注释掉