自己通过Cygwin编译的windowsx86下的更新至4.0.1

采用方法: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

redis.3.2.6x86下载

redis3.2.8x86下载

 4.0.1 编译未修改直接编译成功

$ cd deps 
$ make lua hiredis linenoise
$ cd ..
$ make && make install

redis4.0.1x86下载

经过测试还是原版的3.2x64 速度快,是这种方法编译速度的20倍

redis3.2 top-shelf 安装 修改文件文件redis-topshelf.exe.config 已添加 密码 限制大小200M

redis 3.2 x64

转载于:https://www.cnblogs.com/yzpopulation/p/6251390.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值