windows下redis主从配置
好消息,百度网盘专业搜索网站上线了
打开瞧一瞧:http://bitar.cn
redis-2.8.19.zip 实现主从 redis-server a.conf redis-server b.conf redis-cli.exe -h 127.0.0.1 -p 6378 ======================================== 配置文件中相同的放到common.conf,通过 include common.conf 有slaveof <masterip> <masterport>就是从服务器 ,没有就是 主服务器 在从服务器配置中指定主服务器的ip和端口 ------主服务器特殊配置------- #master include common.conf port 6379 requirepass 123 -------从服务器特殊配置-------- #slave include common.conf port 6378 # slaveof <masterip> <masterport> slaveof 127.0.0.1 6379 # masterauth <master-password> masterauth 123 =================常用命令================================