redis.conf文件下载

官方地址:https://redis.io/topics/config/

protected-mode 参数

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语句注释掉

更多推荐

redis.conf文件下载与配置