一台服务器多个redis实例,复制redis.windows.conf配置文件,修改端口号,修改rdb文件名称。
通过redis-server 配置文件名 启动redis
重新打开cmd,通过两种方式打开redis客户端
在从节点执行命令slaveof 127.0.0.1 主节点端口号
到此为止,就可以测试redis的主从复制了。