日期:2014-05-16  浏览次数:20786 次

Redis安装整理(window平台和Linux平台)
window平台Redis安装?

redis windows安装文件下载地址:http://code.google.com/p/servicestack/wiki/RedisWindowsDownload#Download_32bit_Cygwin_builds_for_Windows
我选择的redis为最新版的安装文件,见下图:?
?
redis-server.exe:服务程序?
redis-check-dump.exe:本地数据库检查?
redis-check-aof.exe:更新日志检查?
redis-benchmark.exe:性能测试,用以模拟同时由N个客户端发送M个 SETs/GETs 查询 (类似于 Apache 的ab 工具).?

在解压好redis的安装文件到E:\根目录后,还需要在redis根目录增加一个redis的配置文件redis.conf,文件具体内容附件中有,不过这里我仍然把配置文件的内容贴上来:?
Java代码??收藏代码
  1. #?Redis?configuration?file?example??
  2. ??
  3. #?By?default?Redis?does?not?run?as?a?daemon.?Use?'yes'?if?you?need?it.??
  4. #?Note?that?Redis?will?write?a?pid?file?in?/var/run/redis.pid?when?daemonized.??
  5. daemonize?no??
  6. ??
  7. #?When?run?as?a?daemon,?Redis?write?a?pid?file?in?/var/run/redis.pid?by?default.??
  8. #?You?can?specify?a?custom?pid?file?location?here.??
  9. pidfile?/var/run/redis.pid??