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,文件具体内容附件中有,不过这里我仍然把配置文件的内容贴上来:
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,文件具体内容附件中有,不过这里我仍然把配置文件的内容贴上来:
- #Redisconfigurationfileexample
- #BydefaultRedisdoesnotrunasadaemon.Use'yes'ifyouneedit.
- #NotethatRediswillwriteapidfilein/var/run/redis.pidwhendaemonized.
- daemonizeno
- #Whenrunasadaemon,Rediswriteapidfilein/var/run/redis.pidbydefault.
- #Youcanspecifyacustompidfilelocationhere.
- pidfile/var/run/redis.pid
- #Acceptconnectionsonthespecifiedport,defaultis6379
- port6379
- #Ifyouwantyoucanbindasingleinterface,ifthebindoptionisnot
- #specifiedalltheinterfaceswilllistenforconnections.
- #
- #bind127.0.0.1
- #ClosetheconnectionafteraclientisidleforNseconds(0todisable)
- timeout300
- #Setserververbosityto'debug'
- #itcanbeoneof:
- #debug(alotofinformation,usefulfordevelopment/testing)
- #notice(moderatelyverbose,whatyouwantinproductionprobably)
- #warning(onlyveryimportant/criticalmessagesarelogged)
- logleveldebug
- #Specifythelogfilename.Also'stdout'canbeusedtoforce
- #thedemontologonthestandardoutput.Notethatifyouusestandard
- #outputforloggingbutdaemonize,logswillbesentto/dev/null
- logfilestdout
- #Setthenumberofdatabases.ThedefaultdatabaseisDB0,youcanselect
- #adifferentoneonaper-connectionbasisusingSELECT<dbid>where
- #dbidisanumberbetween0and'databases'-1
- databases16
- ################################SNAPSHOTTING#################################
- #
- #SavetheDBondisk:
- #
- #save<seconds><changes>
- #
- #WillsavetheDB
免责声明: 本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。