In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
Recently, a project uses Redis as a data cache, and the most important thing to use Redis is to write a configuration file, so to understand the meaning of its various configuration parameters, I tidied up today and found that some parameters are not very clear. Please post it and ask everyone to have a look at it.
Daemonize: whether to run # yes in background daemon mode | no (default:no)
Pidfile: pid file location. It only works if daemonize is yes. Pid path (ex:/var/run/redis.pid)
Port: the port number # (default:6379) of the listener
Timeout: request timeout (in seconds)
Loglevel: log information level # debug | verbose | notice | warning
Logfile: log file location # (default:stdout)
Databases: number of databases opened
Save: the frequency with which snapshots are saved automatically when a certain number of writes are performed within a certain period of time. Multiple conditions can be set. Download address
Slaveof: when the machine is a slave service, set the IP and port of the master service
Masterauth: set the connection password of the master service when the machine is a slave service
Requirepass: connection password
Maxclients: maximum number of client connections. 0: unlimited # (default:0)
Maxmemory: set the maximum memory setting. After reaching the maximum memory setting, Redis will first try to clear the expired or expiring Key. When this method is processed, any maximum memory setting can no longer be written.
Rdbcompression: whether to use compression # yes | no (default:yes)
Dbfilename: data snapshot file name (file name only, not directory) # * .rdb
Dir: the directory where the data snapshot is saved (this is the directory)
Appendonly: whether or not to enable appendonlylog, each write operation will record a log, which will improve the anti-risk ability of the data, but affect the efficiency. # yes | no
Appendfilename update log file name # (default:appendonly.aof)
Appendfsync: how to synchronize appendonlylog to disk (always: force fsync; everysec to be called every time you write: enable fsync; no once per second: do not call fsync and wait for the system to synchronize)
Vm-enabled: whether to enable virtual memory # yes | no (default:no)
Vm-swap-file: swap partition files (used when virtual memory is enabled) # * .swap path (ex:/tmp/redis.swap)
Vm-max-memory: all data larger than vm-max-memory is stored in virtual memory. No matter how small the vm-max-memory setting is, all index data is stored in memory (Redis's index data is keys), that is, when vm-max-memory is set to 0, all value actually exists on disk. # (default:0) download address
Vm-page-size: swap file page size (set according to the stored value size, in byte) # (default:32)
Vm-pages: swap the number of memory pages in the partition file # (default:134217728)
Vm-max-threads: maximum number of threads to operate on swap files (preferably CPU) # (default:4)
Glueoutputbuf: # yes | no (default:yes)
Hash-max-zipmap-entries: # (default:64)
Hash-max-zipmap-value: # (default:512)
Activerehashing: # yes | no (default:yes)
Include: reference another configuration file # * .conf path (ex:/path/to/other.conf)
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.