打开 /etc/redis.conf 配置文件
1、注释掉 本地连接对应的 bind,如图所示:
2、将redis默认的守护关闭,即:将 protected-mode yes 修改为 protected-mode no,如下图所示:
3、重启redis服务
参考链接:https://www.cnblogs.com/cndarren/p/13553707.html