java连接Redis关于保护模式的一个错误

java连接Redis关于保护模式的一个错误

解决方法:
1 修改redis.conf文件
命令:vi redis.conf 或者vim redis.conf
java连接Redis关于保护模式的一个错误

如果修改的了redis.conf文件还是报错:
进入客户端 命令:./redis-cli
执行:CONFIG SET protected-mode no