Nosql
LLLboai
Unless it kills you,it makes you stronger...
展开
-
spring整合redis
spring与redis整合的一个小demo 准备工作:在本机安装好redis,并且能够成功使用 demo地址:https://github.com/boailiu/springRedisDemo.git 1.首先创建maven项目,pom.xml文件如下 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="ht...原创 2018-09-14 10:13:15 · 99 阅读 · 0 评论 -
windows环境创建redis多个实例,实现主从同步
redis单机环境下开启多个实例,并形成主从同步。redis默认端口是6379,这里我们创建了三个实例,分别使用了6380,6381,6382三个端口,6380端口实例作为主节点,6381和6382作为从节点。 1.下载好windows版本的redis,进行解压。这里并没有安装为windows的服务,通过指令操作。 //cmd进入到redis的目录,执行指令开启实例 redis-server...原创 2018-11-15 15:53:58 · 937 阅读 · 1 评论