image.png

redis集群设置允许外网访问的方法:

打开redis目录下的redis.conf 文件。

找到:

bind 127.0.0.1protected-mode yes

更改为:

# bind 127.0.0.1protected-mode no

注:配置文件bind的ip需要填写为0.0.0.0,表示监听任何ip。