日期:2014-05-17  浏览次数:20652 次

windows下redis的安装

windows下redis的安装文件,从下面地址下载

http://code.google.com/p/servicestack/wiki/RedisWindowsDownload#Download_32bit_Cygwin_builds_for_Windows

下载最新的版本

 
解压到指定的目录,比如E:/根目录下
在解压包下面有几个文件
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,文件具体内容如下:
  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   
  10.   
  11. # Accept connections on the specified port, default is 6379  
  12. port 6379  
  13.   
  14. # If you want you can bind a single interfaceif the bind option is not   
  15. # specified all the interfaces will listen for connections.   
  16. #   
  17. # bind 127.0.0.1  
  18. bind 202.117.16.133
  19.   
  20. # Close the connection after a client is idle for N seconds (0 to disable)   
  21. timeout 300  
  22.   
  23. # Set server verbosity to&