【Redis】Window11安装
【Redis】使用学习
============================================================
1、windows 安装
============================================================
1、windows 安装
下载地址:https://github.com/MicrosoftArchive/redis/releases
下载版本:https://github.com/redis-windows/redis-windows/releases/tag/8.6.1.1
解压后进入目录
cd D:\02_env\redis-8.6.1\
D:\02_env\redis-8.6.1\data 目录要提前创建,要不然启动服务报错
安装服务:
RedisService.exe install -c D:\02_env\redis-8.6.1\redis.conf --dir D:\02_env\redis-8.6.1\data --port 6379
net start Redis
卸载服务:
RedisService.exe uninstall
控制台连接
redis-cli.exe -h 127.0.0.1 -p 6379
> config get requirepass
> config set requirepass 123456
设置密码之后
> auth 123456
切换库,库索引从0~15
>select 5
修改 redis.conf、redis.windows-service.conf、redis.windows.conf 文件
1、解除绑定本地ip
注释掉 bind 127.0.0.1
2、关闭保护模式
protected-mode yes 改为 protected-mode no
3、设置密码
requirepass 123456
4、关闭存磁盘
save ""
5、关闭AOF
appendonly no
appendfsync no

浙公网安备 33010602011771号