摘要:
1,先进入解压后的redis目录下 创建config文件夹,把redis.conf拷贝到config文件夹下,为redis启动配置不同的配置文件 我拷贝了三份配置,准备搭建“一主双从”集群 需要注意的是,需要修改配置文件。这里以redis6380.conf为例 修改端口 修改pid 修改logfil 阅读全文
摘要:
1,jedis redis官方推荐使用jedis操作redis 导入依赖 <!-- https://mvnrepository.com/artifact/redis.clients/jedis --> <dependency> <groupId>redis.clients</groupId> <ar 阅读全文