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

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


当前回答

Redis项目并不正式支持Windows。但是,微软开放技术小组开发并维护了这个针对Win64的Windows端口。

http://redis.io/download

其他回答

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

windows上的redis版本是由微软开放技术团队发布的,但最近这个项目已被归档为https://github.com/MicrosoftArchive/redis只读,不会更新。已经停止发展

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

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

安装 Redis

窗户

⚫Windows 8.1及以前版本

Download Redis (msi) from the link https://github.com/MicrosoftArchive/redis/releases Run the installer Open the folder where Redis has been installed and Start redis-server to check if redis is working by clicking on redis-server Stop Redis server by typing SHUTDOWN SAVE or force quit by CTRL + C Open Start Type Environment Variables and click on edit environment variables and path Inside System variables, click on path In the next window click on new. Add a new path C:\Program Files\{Your Redis Version} Where Redis Version is the Redis version installed on your system For e.g. C:\Program Files\Redis-x64-3.2.100 Verify That Setup was Successful Check by typing redis-cli or redis-server

⚫ 视窗 10

Step Up WSL

a.以Administrator用户运行Windows Powershell

b.执行以下命令

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

c.修改完成后重新启动Windows

d.从windows商店https://www.microsoft.com/en-us/p/ubuntu-1804/9n9tngvndl3q?activetab=pivot%3Aoverviewtab下载Ubuntu发行版

安装和测试Redis

a.启动下载的发行版,执行如下命令

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install redis-server
redis-cli -v

注:如果安装有任何错误,请参阅本文。

mssopentech - redis项目不再积极维护。如果你正在寻找Windows版本的Redis,你可能想看看Memurai。请注意,微软并没有以任何方式正式认可该产品。详情见https://github.com/microsoftarchive/redis

在Windows 10上安装和设置Redis服务器https://redislabs.com/blog/redis-on-windows-10

在macOS和Linux上安装和设置Redis服务器https://redis.io/download

此外,您可以通过包管理器在Linux上安装和设置Redis服务器

快速Redis服务器安装和设置指南macOS https://github.com/rahamath18/Redis-on-MacOS