这个错误是因为开启了保护模式,导致出错。所以需要关闭redis的保护模式。
编辑redis的redis.config
注释 bind 127.0.0.1 、修改protected-mode 为 no、修改 daemonize 为 no
daemonize 为 no
然后重启redis