首先说明这是windows下的redis安装,不是linux系统下的
下载解压
下载Redis-x64-3.2.100.zip文件,官网可下,这里根据自己使用的不同版本进行下载,下载之后解压,我们可以看到如下效果

我们在解压后的文件夹中看到了redis-server.exe,如果你找不到这个exe文件,那么很有可能是linux系统下的压缩文件。
启动服务
Win+R快捷键,输入CMD,进入CMD窗口,进入解压后文件所在路径,并输入以下指令:
redis-server.exe redis.windows.conf
如图,则服务启动成功。这样我们就启动了redis的服务器。

启动客户端
Win+R快捷键,输入CMD,重新打开一个CMD窗口,进入解压后文件所在路径,并输入以下指令:
redis-cli.exe

此时我们就可以输入redis的各种命令了:

把redis设置成windows服务
我们搭建了redis的服务和客户端,但是一旦我们把cmd命令窗口关掉,redis服务就停止了,所以我们要安装一个windows的redis服务

在安装之前,本地服务是没有redis的
安装命令:
redis-server.exe --service-install redis.windows.conf

安装成功后提示如图,然后我们就可以在服务中找到redis的服务了

reids桌面管理工具
推荐使用的桌面管理工具:Redis Desktop Manager

我们把工具打开:


网友评论