如何在Windows上运行Redis ?Redis下载页面似乎提供了*nix选项。
我可以在Windows上本地运行Redis吗?
如何在Windows上运行Redis ?Redis下载页面似乎提供了*nix选项。
我可以在Windows上本地运行Redis吗?
当前回答
MS Open Tech最近在Github上提供了一个Redis版本供下载。他们说它还没有准备好生产,但请密切关注。
Github回购
下载发行版为MSIs
其他回答
最新的Redis x86版本(32位)可以在这里找到: http://bitsandpieces.it/redis-x86-32bit-builds-for-windows
他说他会保持两个2.8。*和3.0。*分支。
你可以试试baboonstack,它包括redis和node.js以及mongoDB版本管理器。它是跨平台的。
目前还没有windows版的Redis。(只有一些旧版本可用)
但是你可以使用WSL(Windows Subsystem for Linux)安装最新版本,参考以下来自Redis Labs的博客:
https://redislabs.com/blog/redis-on-windows-10
转到发行版,你可以得到一个包含相关文件的ZIP文件,以及一个名为RedisService.docx的Word文档,并带有以下说明:
Installing the Service --service-install This must be the first argument on the redis-server command line. Arguments after this are passed in the order they occur to Redis when the service is launched. The service will be configured as Autostart and will be launched as "NT AUTHORITY\NetworkService". Upon successful installation a success message will be displayed and Redis will exit. This command does not start the service. For instance: redis-server --service-install redis.windows.conf --loglevel verbose
之后,在同一份文件中,还有另一个例子:
下面将安装并启动三个独立的Redis实例作为服务: redis-server——service-install——service-name redisService1 -port 10001 .使用实例 redis-server——service-start——service-name redisService1 .使用实例 redis-server——service-install——service-name redisService2 -port 10002 redis-server——service-start——service-name redisService2 redis-server——service-install——service-name redisService3 -port 10003 .使用实例 redis-server——service-start——service-name redisService3
据我所知,这似乎是一种新的方法,而不是用一个单独的Windows服务来监视和重新启动CLI。
今天我知道这4个选择:
第一个是tporadowski/redis上的开源分支,提供了与版本5的兼容性(版本6正在开发中)。
第二个是memurai(付费),与版本5兼容,支持和一个免费版本的开发。
第三个是最近发布的zkteco-home/redis-windows,它提供了与版本7的兼容性,但不是开源的。
也可以选择通过WSL运行。但是我不建议在生产环境中使用它。