关于redis sentinel的启动
摘要:关于redis sentinel的启动 ****************************************************************************** 1启动方式 可以看到在server.c中,下面这一行判断是否是sentinel模式启动 server.
阅读全文
posted @
2021-11-30 19:37
子虚乌有
阅读(161)
推荐(0) 编辑
redis关于sentinel配置bind的ip先后顺序问题
摘要:redis关于sentinel配置bind的ip先后顺序问题 准备开始看sentinel相关的代码,首先先启动起来看看情况, 于是准备了3台机器 10.100.13.81 10.100.13.88 10.100.13.160 10.100.13.81作为主 88和160 作为从机, 启动单一的sen
阅读全文
posted @
2021-11-29 20:28
子虚乌有
阅读(296)
推荐(0) 编辑
redis6.0.5之REPLICAOF同步命令-主从数据同步
摘要:REPLICAOF同步数据 根据注释,版本5以后使用REPLICAOF代替SLAVEOF { "SLAVEOF", "host port", "Make the server a replica of another instance, or promote it as master. Deprec
阅读全文
posted @
2021-11-29 20:27
子虚乌有
阅读(1120)
推荐(0) 编辑
redis6.0.5一个关于REGISTER_API的小测试(注册API宏定义)
摘要:#include<stdio.h> #define REGISTER_API(name) moduleRegisterApi("RedisModule_" #name , (void *)(unsigned long)RM_ ## name) //定义的api名和函数名 void moduleReg
阅读全文
posted @
2021-11-10 17:21
子虚乌有
阅读(70)
推荐(0) 编辑
redis6.0.5之anet.c阅读笔记-TCP的封装
摘要:*********************************************************************************************** /* anet.c -- Basic TCP socket stuff made a bit less bo
阅读全文
posted @
2021-11-01 19:17
子虚乌有
阅读(134)
推荐(0) 编辑