安装
windows-解压版:
1、运行redis-server.exe 不要关闭
2、接着运行redis-cli.exe
设置键值对:set myKey abc
取出键值对:get myKey
windows-安装版:https://github.com/MicrosoftArchive/redis



修改redis.windows-service.conf配置文件,找到含有requirepass字样的地方,追加一行,输入requirepass 123456。这是访问Redis时所需的密码,一般测试情况下可以不用设定密码。

新打开一个cmd控制台执行命令:
设置键值对:set myKey abc
取出键值对:get myKey
关闭控制台,重新打开get myKey 仍然成功。安装完成
网友评论