Windows安装redis
下载地址:
GitHub - MicrosoftArchive/redis
下载zip文件解压到目录
修改**
redis.windows.conf**文件1
2
3
4
5
6
7
8# 绑定监听 IP(默认 127.0.0.1,仅本地访问;若需远程访问改为 0.0.0.0,但不安全!)
bind 127.0.0.1
# 监听端口(默认 6379,若被占用可修改为其他端口如 6380)
port 6379
# 启用密码认证(生产环境必改,本地开发可选)
requirepass your_redis_password # 替换为你的密码(如 "123456")启动redis服务
redis-server.exe redis.windows.conf
安装为Windows服务(推荐)
- 输入命令
1 | D:\software\redis\Redis-x64-3.0.504\redis-server.exe --service-install D:\software\redis\Redis-x64-3.0.504\redis.windows.conf --loglevel verbose |

- 启动服务
1
net start Redis
下载Redis桌面客户端
https://gitee.com/qishibo/AnotherRedisDesktopManager/releases