资源描述:
《redisconf配置参数详解》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、redis.conf配置参数详解Theredis.confconfigurationoptionsareasfollowsDaemonizewhetherthesubsequentprocessisrunning,thedefaultisnoPidfile,suchasthesubsequentprocessofrunning,youneedtospecifyaPID,defaultto/var/run/redis・pidBindbindhostIP,defaultvalueis127・0.0.1
2、(note)Portlisteningport,defaultsto6379Timeouttimeouttime,defaultto300(seconds)Theloglevellogginglevelhas4optionalvalues,debug,verbose(default),notice,andwarningLogfileloggingmodewithdefaultvalueofstdoutThenumberofavailabledatabasesfordatabasesdefaults
3、to16,andthedefaultdatabaseis0Savepointsouthowmanytimesanupdateisperformedinagivenlengthoftime,synchronizingdatatoadatafile・Thiscanbeacombinationofmultipleconditions,suchasthedefaultconfigurationfilesettings,setthethreeconclitions・Sav
4、e9001Atleast1keyhavebeenchangedin900seconds(15minutes)Save30010300seconds(5minutes),atleast300keyhavebeenchangedSavehasatleast10000keychangesin601000060secondsIsrdbcompressioncompressingdatawhenitisstoredtothelocaldatabaseanddefaultstoyes?Dbfilenamelo
5、caldatabasefilename,defaultvalueisdump・rdbDirlocaldatabasestoragepath,thedefaultvalueis.SlaveofsetstheIPandportofthemainservice(note)whenthemachineisfromserviceMasterauth〈master-password〉whenthemachineisfromservice,settheconnecti
6、onpasswordforthemainservice(note)Requirepassconnectionpassword(comment)Maxclientsmaximumclientconnectionnumber,thedefaultisnotlimited(note)Maxmemorysetthemaximummemory,themaximummemorysettings,RediswilltrytoremovehasexpiredorexpiringKey,whenthi
7、sapproach,asreachingthemaximummemorysettings,willnotbeabletowrite・(note)Doestheappendonlylogaftereachupdateoperation?Ifnotturnedon,thedatamaybelostwithinaperiodoftimewhenthepowerisoff.Becausetheredisitselfsynchronizesthedatafiletosynchronizewiththeabo
8、vesavecondition,somedataonlyexistsinmemoryforaperiodoftime・ThedefaultvalueisnoAppendfilenameupdatelogfilename,defaultvalueisappendonly.aof(note)Theappendfsyncupdatelogconditionhasatotalof3optionalvalues・Noindicatesthatotheroperatingsystemssync