# ~~~ WARNING ~~~ If the computer running Redis is directly exposed to the # internet, binding to all the interfaces is dangerous and will expose the # instance to everybody on the internet. # It is possible to listen to just one or multiple selected interfaces using # the "bind" configuration directive, followed by one or more IP addresses. # By default, if no "bind" configuration directive is specified, Redis listens # for connections from all available network interfaces on the host machine. #ģ、 binding host explain : The default binding host by 127.0.0.1, That is, only local access redis service, Comment it out as remote access Redis One of the sufficient conditions for, meanwhile, You can bind multiple host. # If instead you are interested in using includes to override configuration # options, it is better to use include as the last line. Since Redis always uses the last processed # line as value of a configuration directive, you'd better put includes # at the beginning of this file to avoid overwriting config change at runtime. 2、 Other configuration files can be referenced : # Note that option "include" won't be rewritten by command "CONFIG REWRITE" # from admin or Redis Sentinel. One 、Redis Configuration file details 1、 Unit description : # Note on units: when memory size is needed, it is possible to specify # it in the usual form of 1k 5GB 4M and so forth: # 1k => 1000 bytes # 1kb => 1024 bytes # 1m => 1000000 bytes # 1mb => 1024*1024 bytes # 1g => 1000000000 bytes # 1gb => 1024*1024*1024 bytes # units are case insensitive so 1GB 1Gb 1gB are all the same. Manually configure the host during downtime.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |