爱分享的代码君

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

一、下载

地址:https://pan.quark.cn/s/5aad2766eb37

进入到redis目录,找到“Redis-8.6.1-Windows-x64-cygwin-with-Service.zip”

image

二、解压安装

1. 解压

解压到指定的磁盘目录,目录建议只包含英文字母和数字

image

2. 添加到Path

按“win+s”打开搜索,输入“环境变量”

点击“编辑系统环境变量”

image

在“系统属性”对话框中点击“环境变量”

image

在“环境变量”对话框的“系统变量”中选中“Path”,点击“编辑”

image

在“编辑环境变量”中点击“新建”,然后点击“浏览”,选择redis的解压根目录

点击“确定”完成。

image

3.验证是否安装成功

按“win+r”打开运行,输入“cmd”,回车

image

输入“redis-server”,如果出现以下信息表示配置成功。

按“ctrl + c”可退出服务

image

三. 系统服务配置

1. 安装服务

按“win + s”打开搜索,输入cmd,在右边点击“以管理员身份运行”

image

输入“RedisService.exe install -c D:\Programs\db\Redis-8.6.1-Windows-x64-cygwin-with-Service\redis.conf --service-name redis”完成安装。

其中“D:\Programs\db\Redis-8.6.1-Windows-x64-cygwin-with-Service”为redis解压的根目录

image

2. 常用服务命令

卸载服务:RedisService.exe uninstall  --service-name redis

停止服务:net stop redis

启动服务:net start redis

 

posted on 2026-03-07 17:08  爱分享的代码君  阅读(5)  评论(0)    收藏  举报