安装
windows-解压版:
1、运行redis-server.exe 不要关闭
2、接着运行redis-cli.exe
设置键值对:set myKey abc
取出键值对:get myKey
windows-安装版:https://github.com/MicrosoftArchive/redis
![](https://img.haomeiwen.com/i7764460/56e49cf5ad0fdb89.png)
![](https://img.haomeiwen.com/i7764460/82e0a8554f7e810b.png)
![](https://img.haomeiwen.com/i7764460/979830a27ed88173.png)
修改redis.windows-service.conf配置文件,找到含有requirepass字样的地方,追加一行,输入requirepass 123456。这是访问Redis时所需的密码,一般测试情况下可以不用设定密码。
![](https://img.haomeiwen.com/i7764460/5c77deeca25eda63.png)
新打开一个cmd控制台执行命令:
设置键值对:set myKey abc
取出键值对:get myKey
关闭控制台,重新打开get myKey 仍然成功。安装完成
网友评论