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

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


当前回答

安装Redis for Windows

你可以从这些来源中任意选择

https://github.com/MSOpenTech/redis/releases 或 https://github.com/rgl/redis/downloads

就我个人而言,我更喜欢第一种选择

下载Redis-x64-2.8.2104.zip 解压到准备好的目录 运行redis-server.exe或redis-server.exe——maxheap 2gb

然后运行redis-cli.exe

您现在可以开始使用Redis,请参考命令

其他回答

在这里可以找到最新的Redis版本(后面只有几个小版本)。这个存储库为您提供了3.2.100版本(当前是3.2),而投票最多的答案只提供了2.4.6版本,最后一次更新是在2年前。

安装很简单:只需将存档中的所有内容复制到任何文件夹中,然后运行redis-server.exe来运行服务器,再运行redis-cli.exe通过shell连接到该服务器。

你可以试试baboonstack,它包括redis和node.js以及mongoDB版本管理器。它是跨平台的。

you can install Redis by following this article: https://github.com/ServiceStack/redis-windows but for going straight, you can download it by this link: https://github.com/ServiceStack/redis-windows/raw/master/downloads/redis-latest.zip after downloading, go to the directory which you like to put your files,then extract the zip file, then open a command prompt and go to the directory where you extracted your file, then type "redis-server" and hit enter(for opening redis-cli open command and route to redis directory, but instead of "redis-server" execute "redis-cli").

似乎这是获得最新版本的Redis最简单的方法-使用NuGet管理器:

1)打开NuGet设置页面,下载命令行实用程序 (nuget.exe命令行工具的最新版本始终可从https://nuget.org/nuget.exe获得)

2)将此文件复制到某个地方(例如C:\Downloads)

3)以管理员身份启动命令提示符并执行以下命令:

cd C:\Downloads
nuget.exe install redis-64

4)在下载文件夹将是最新版本的Redis (C:\Downloads\Redis-64.2.8.19在我的情况下)

5)运行redis-server.exe并开始工作

附注:下载的redis for windows包含一个非常旧的redis版本:2.4.6

今天我知道这4个选择:

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

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

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

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