1.配置安全组规则
2.redis 配置protected-model
连接redis并执行命令:config set protected-model no
3.测试:
Jedis conn = new Jedis("公网IP",6379);
conn.set("hello", "world");
System.out.println(conn.get("hello"));
1.配置安全组规则
2.redis 配置protected-model
连接redis并执行命令:config set protected-model no
3.测试:
Jedis conn = new Jedis("公网IP",6379);
conn.set("hello", "world");
System.out.println(conn.get("hello"));