确保以下两项配置
1.bind 127.0.0.1改为 #bind 127.0.0.1
2.protected-mode yes 改为 protected-mode no
ps: protected-mode 是3.2 之后加入的新特性,是为了禁止公网访问redis cache,加强redis安全的。
它启用的条件,有两个:1) 没有bind IP2) 没有设置访问密码