redis in cmd

下载:

  https://github.com/dmajkic/redis/downloads

解压:

  redis-server.exe:服务程序

  redis-check-dump.exe:本地数据库检查

  redis-check-aof.exe:更新日志检查

  redis-benchmark.exe:性能测试,用以模拟同时由N个客户端发送M个 SETs/GETs 查询 (类似于 Apache 的ab 工具).

  redis-cli.exe  客户端,访问服务程序的节点

启动服务端:(保持这个cmd不要关闭,关闭则服务停止)

  D: edis edis-2.4.5-win32-win6432bit>redis-server.exe redis.conf

启动客户端:(另打开一个cmd)

  D: edis edis-2.4.5-win32-win6432bit>redis-cli.exe -h localhost -p 6379

try redis

  redis localhost:6379>set fri "xuhj"

  redis localhost:6379>get fri

  ...

原文地址:https://www.cnblogs.com/xuhj/p/4270793.html