6、Redis_Jedis_测试

1、Jedis所需要的jar包

<dependency>

<groupId>redis.clients</groupId>

<artifactId>jedis</artifactId>

<version>3.2.0</version>

</dependency>

2、连接Rdis注意事项

禁用Linux的防火墙:Linux(CentOS7)里执行命令

systemctl stop/disable firewalld.service

redis.conf中注释掉bind 127.0.0.1 ,然后 protected-mode no

posted @ 2022-11-11 22:58  枫叶红时  阅读(26)  评论(0)    收藏  举报