redis集群設置允許外網訪問的方法:
打開redis目錄下的redis.conf 文件。
找到:
bind 127.0.0.1protected-mode yes
bind 127.0.0.1
protected-mode yes
更改為:
# bind 127.0.0.1protected-mode no
# bind 127.0.0.1
protected-mode no
注:配置文件bind的ip需要填寫為0.0.0.0,表示監聽任何ip。