redis远程连接

配置文件 redis.conf

注释掉 bind 127.0.0.1

进入本地连接 redis-cli

输入以下命令

CONFIG SET protected-mode no

jedis连接

Jedis jedis = new Jedis("ip");

posted @ 2019-08-19 17:00  炒鸡  阅读(230)  评论(0)    收藏  举报