如何在Windows上运行Redis ?Redis下载页面似乎提供了*nix选项。

我可以在Windows上本地运行Redis吗?


当前回答

如果你想在Windows服务器上安装mopentech最新的Redis端口,由Windows Service监视,而不需要自己构建任何东西,请继续阅读。

MSOpenTech's seems to be the only port that is actively trying to keep up with the latest and greatest Redis. They claim it is production-ready, but they haven't exactly packaged it up neatly for installation on a server, especially if you want to run their RedisWatcher service to keep an eye on it, which is recommended. (I tried building RedisWatcher myself per their instructions, but the required Wix Toolset managed to mess up my system pretty good. I won't go into it.) Fortunately they've provided all the binaries you need, just not all in one place. From the README:

到目前为止,RedisWatcher还没有延续到2.6版本。然而,这 不应该受到Redis版本和2.4中的代码的影响 分支应该与Redis 2.6二进制文件一起工作。

因此,您需要从两个分支下载二进制文件,以获得所有必要的位。话不多说,下面是步骤:

Download and extract the Redis binaries from the 2.6 branch Copy all extracted binaries to c:\redis\bin Create another folder at c:\redis\inst1 Download and extract the RedisWatcher binaries from the 2.4 branch Run InstallWatcher.msi. This should create a Windows service called Redis watcher. Open up the Windows Services console and start the Redis watcher service. (optional) RedisWatcher should have installed to C:\Program Files (x86)\RedisWatcher. There you'll find a config file called watcher.conf, which you can edit to set up additional instances, use different paths than I specified in steps 2 & 3, etc. You will not need to restart the service for changes to take effect.

其他回答

今天我知道这4个选择:

第一个是tporadowski/redis上的开源分支,提供了与版本5的兼容性(版本6正在开发中)。

第二个是memurai(付费),与版本5兼容,支持和一个免费版本的开发。

第三个是最近发布的zkteco-home/redis-windows,它提供了与版本7的兼容性,但不是开源的。

也可以选择通过WSL运行。但是我不建议在生产环境中使用它。

最新的Redis x86版本(32位)可以在这里找到: http://bitsandpieces.it/redis-x86-32bit-builds-for-windows

他说他会保持两个2.8。*和3.0。*分支。

目前还没有windows版的Redis。(只有一些旧版本可用)

但是你可以使用WSL(Windows Subsystem for Linux)安装最新版本,参考以下来自Redis Labs的博客:

https://redislabs.com/blog/redis-on-windows-10

在Windows系统上安装Redis遵循以下步骤:

访问以下链接之一:

https://github.com/MSOpenTech/redis/releases(推荐) https://github.com/rgl/redis/downloads

下载MSI文件。 按照安装向导在您的系统上安装该程序。(不要更改安装路径为“C:\Program Files\Redis”) 在开始菜单上搜索“编辑系统环境变量” 点击“环境变量”按钮 选择“路径”,点击“编辑” 现在点击“新建” 粘贴C:\Program Files\Redis(如果在安装时更改了路径) 点击“ok”,“ok”和“ok”

现在打开终端(命令提示符)并运行redis-cli

好吧,我得到一些错误打开redis-server(它一直工作得很好,直到现在,但不确定什么是错误的,所以弄清楚并将更新这个答案)

从历史上看,微软有一个redis的Windows移植版本,它以redis -64的形式发布,为Windows提供了一个完整的redis发行版。

微软的移植版本现在已被弃用,但已经出现了一些替代方案来填补这一空白:

Memurai是Redis-64弃用页面上官方推荐的替代方案;它是一个带有免费开发者层的商业产品,由Janea Systems维护 Redis-windows是另一个非官方的端口,它也存在


此版本包括Redis -server.exe (Memurai上的Memurai .exe)应用程序,在您的windows机器上运行Redis实例作为服务,以及Redis -cli.exe (Memurai上的Memurai -cli.exe),您可以使用它与任何Redis实例进行交互。

RGL存储库历史上被列为Redis的替代Windows端口,但这个存储库已经有一段时间没有维护了,并且实现了比微软端口更老的Redis版本。