Redis-zip版环境搭建
准备工作
首先去官方下载Redis.zip文件。
下载地址:https://github.com/MicrosoftArchive/redis
安装
将下载好的zip文件进行解压,这里我的解压环境为D:\Program\
文件夹名称为redis-x64-3.2.100
。
以下是目录结构:
redis-x64-3.2.100
├─dump.rdb
├─EventLog.dll
├─Redis on Windows Release Notes.docx
├─Redis on Windows.docx
├─redis-benchmark.exe
├─redis-benchmark.pdb
├─redis-check-aof.exe
├─redis-check-aof.pdb
├─redis-cli.exe
├─redis-cli.pdb
├─redis-server.exe
├─redis-server.pdb
├─redis.windows-service.conf
├─redis.windows.conf
├─server_log.txt
└─Windows Service Documentation.docx
可对redis.windows.conf
或redis.windows-service.conf
进行相关配置。
一般情况下redis.windows.conf
用于直接启动的配置文件redis.windows-service.conf
用于安装服务的配置文件
windows服务安装
接下来安装服务,在cmd中输入 redis-server --service-install redis.windows-service.conf
安装服务。需要管理员权限
若已经执行了安装操作,可以使用redis-server --service-uninstall
删除之前安装的服务,再执行初始化操作。
环境变量设置
scriptsetx "Path" "%path_%;newpath1;newpath2" /m
Redis-zip版环境搭建
https://blog.cikaros.top/doc/129cd0a6.html