redis windows版本编译

1、redis for windows 下载地址:

https://github.com/tporadowski/redis

2、下载后解压,用vs2019打开

.\redis-version\msvs\RedisServer.sln

3、编译x64位版本

release.c出现不能打开release.h, 修改

1)注释掉 #include "release.h"

2) 在 #include <string.h>之上添加

#ifdef _WIN32
#include "Win32_Interop/Win32_Portability.h"
#define REdis_GIT_SHA1 "00000000"   /* Todo: Modify build to write them to release.h from the environment */
#define REdis_GIT_DIRTY "0"
#define REdis_BUILD_ID "0000"
#endif

4、编译 RedisServer, 成功!

相关文章

在笔者近 3 年的 Java 一线开发经历中,尤其是一些移动端、用...
这一篇文章拖了有点久,虽然在项目中使用分布式锁的频率比较...
本文梳理总结了一些 Java 互联网项目中常见的 Redis 缓存应用...
书接上回,消息通知系统(notification-system)作为一个独立...
Redis 是目前互联网后端的热门中间件之一,在许多方面都有深...
在Java Spring 项目中,数据与远程数据库的频繁交互对服务器...