如何在Windows上运行Redis ?Redis下载页面似乎提供了*nix选项。
我可以在Windows上本地运行Redis吗?
如何在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,请参考命令
其他回答
我在https://github.com/mythz/redis-windows上提供了在windows上运行Redis的2种最流行的安装说明和下载,展示了如何:
使用Vagrant运行最新的稳定版本的Redis VirtualBox虚拟机。 下载并运行微软Redis的原生Windows移植
以下是我通过Windows子系统for Linux在Windows 10 Pro(1709)上安装Redis 4.0.8的步骤:
in home/user/
01 wget http://download.redis.io/releases/redis-4.0.8.tar.gz
02 tar xzf redis-4.0.8.tar.gz
03 cd redis-4.0.8/
04 sudo apt-get install make
05 sudo apt-get update
06 sudo apt-get install gcc
07 cd deps
08 make hiredis jemalloc linenoise lua geohash-int
09 cd ..
10 make
如果您有一个最新的环境,您可以跳过几个步骤。
今天我知道这4个选择:
第一个是tporadowski/redis上的开源分支,提供了与版本5的兼容性(版本6正在开发中)。
第二个是memurai(付费),与版本5兼容,支持和一个免费版本的开发。
第三个是最近发布的zkteco-home/redis-windows,它提供了与版本7的兼容性,但不是开源的。
也可以选择通过WSL运行。但是我不建议在生产环境中使用它。
我更新了在Windows 10上使用cygwin编译和运行redis 5的方式 https://github.com/meiry/redis5_compiled_for_windows10
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").