售前咨询:400-100-2938
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。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读:redis允许外部访问怎么设置