首先编辑 redis.conf文件(位置随意,但是要确定) 注释掉```bind 127.0.0.1 -::1 同时将protected-mode设置为 no 关闭redis服务并重启 关闭 重启 注意 /etc/redis.conf 为配置文件的位置,因机而异 检查 已经成功重启