采用方法:https://my.oschina.net/maxid/blog/186506
方法中在3.2.6未找到src/redis.h文件 未修改
方法中 /deps/hiredis/net.c 已添加
在 #include "sds.h"后增加以下代码
/* Cygwin Fix */
#ifdef __CYGWIN__
#define TCP_KEEPCNT 8
#define TCP_KEEPINTVL 150
#define TCP_KEEPIDLE 14400
#endif
编译
$ cd deps
$ make lua hiredis linenoise
$ cd ..
$ make && make install
redis_service 即所需服务端
Windows添加链接库cygwin1.dll
3.2.8 采用最新gcc 需添加链接库 cyggcc_s-1.dll
4.0.1 编译未修改直接编译成功
$ cd deps
$ make lua hiredis linenoise
$ cd ..
$ make && make install
经过测试还是原版的3.2x64 速度快,是这种方法编译速度的20倍
redis3.2 top-shelf 安装 修改文件文件redis-topshelf.exe.config 已添加 密码 限制大小200M