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

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


当前回答

我不在windows上运行redis。与端口保持一致涉及太多的麻烦,并且它们总是落后于redis-stable一两个版本。

相反,我在为我运行redis的Vagrant虚拟机上运行redis。我把整个事情打包成一个简单的github repo,这样每个人都可以在没有太多麻烦的情况下获得乐趣。整个过程是自动构建的,所以不会出现混乱。我在这里写了详细的博客。

其他回答

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").

使用Windows 10?

https://learn.microsoft.com/en-us/windows/wsl/install-win10

/ etc /贴切器列表。

(Debian 10 Buster/Bullseye)
Installs latest stable Redis (5.0.6 at time of posting)

deb https://deb.debian.org/debian bullseye main
deb https://deb.debian.org/debian bullseye-updates main
deb http://security.debian.org/debian-security/ buster/updates main
deb http://ftp.debian.org/debian bullseye-backports main
apt install redis-server

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

Redis下载页面现在有一些非官方Windows端口的链接。dmajkic似乎是最受欢迎/最完整的。

更详细的回答:如何在Windows下运行Redis服务

MS Open Tech最近在Github上提供了一个Redis版本供下载。他们说它还没有准备好生产,但请密切关注。

Github回购

下载发行版为MSIs