-
Redis软件包下载地址链接:https://github.com/redis-windows/redis-windows/releases
-
检查或者修改配置文件redis.conf:
#如果允许外部其他主机访问本机redis,设置成:bind 0.0.0.0 bind 127.0.0.1 protected-mode yes #设置端口号,尽量不要用默认6379 port 6379 #设置登陆密码 requirepass 12363dyw!#
-
配置redis系统环境变量:
-
安装redis服务:
在redis解压文件目录下运行install_redis_service.bat
服务安装脚本,脚本运行后会弹出cmd命令提示框,进行如下操作安装:1.Please enter the redis installation path The default is the current path: D:\softwaretools\redis-7.4.3\ If you don't want to modify it, press Enter# 此处会提示输入redis安装路径,默认路径是上方提示的:D:\softwaretools\redis-7.4.3\ Installation Path:2.Please enter the redis configuration file path The default is the current path: D:\softwaretools\redis-7.4.3\redis.conf Must be an absolute path If you don't want to modify it, press Enter# 提示输入redis的配置文件路径,默认路径是:D:\softwaretools\redis-7.4.3\redis.conf Configuration file Path:Installation Path: D:\softwaretools\redis-7.4.3\ Configuration file Path: D:\softwaretools\redis-7.4.3\\redis.conf # 确认上方配置路径没问题后回车键继续即可 请按任意键继续. . . [SC] CreateService 成功 Redis 服务正在启动 . Redis 服务已经启动成功。请按任意键继续. . .
-
服务注册安装完后,启动服务:
-
客户端连接测试:客户端下载链接