Recently a project used to do data caching Redis, using Redis most important is the write configuration file, then to understand its various configuration parameters meaning, today tidied up a bit, found that some parameters are not very clear, special stickers out please help to see.
Daemonize <yes|no>: Whether to run in the next daemon mode # yes|no (default:no)
Pidfile <*.pid>:pid file location, daemonize function When Yes # *.pid path (ex:/var/run/redis.pid)
Port <port>: port number of the Listener # (default:6379)
Timeout <seconds>: Request time-out (units: seconds)
LogLevel <debug|verbose|notice|warning>:log Information Level # debug|verbose|notice|warning
LogFile <filename>:log File Location # (Default:stdout)
Databases <number>: Number of open databases
Save <seconds> <changes>: The frequency at which snapshots are saved, and snapshots are automatically saved when a certain number of writes are performed within a certain amount of time. You can set multiple conditions.
Slaveof <master-ip> <master-port>: Set the IP and port of the master service when this machine is from service
Masterauth <master-password>: Setting the connection password for the primary service when this machine is from service
Requirepass: Connection Password
MaxClients <number>: Maximum number of client connections, 0 for unlimited # (default:0)
MaxMemory <bytes>: Set the maximum memory, when the maximum memory setting is reached, Redis will first attempt to clear the expired or expiring key, and when this method is processed, the maximum memory setting is reached and no further write operations can be made.
Rdbcompression <yes|no>: Whether to use compression # Yes|no (Default:yes)
Dbfilename <*.rdb>: Data Snapshot file name (only file name, excluding directory) # *.RDB
Dir <directory>: Save directory for Data snapshots (this is the directory)
AppendOnly <yes|no>: If the appendonlylog is turned on, a log will be recorded each time the write operation, which will improve the data anti-risk ability, but affect the efficiency. # Yes|no
Appendfilename <*.aof> Update log file name # (DEFAULT:APPENDONLY.AOF)
Appendfsync <always|everysec|no>:appendonlylog How to synchronize to disk (always: Each write is forced to call Fsync; Everysec: Fsync is enabled once per second; No: Do not call Fsync wait for the system to synchronize itself)
Vm-enabled <yes|no>: Whether virtual memory is enabled # Yes|no (default:no)
Vm-swap-file <*.swap>: Swap partition file (used when virtual memory is enabled) # *.swap path (EX:/TMP/REDIS.SWAP)
Vm-max-memory <NUMBER>: All data greater than vm-max-memory is stored in virtual memory, regardless of the vm-max-memory settings, all index data is memory (REDIS index data is keys), That is, when Vm-max-memory is set to 0, all value is actually present on the disk. # (default:0)
Vm-page-size <bytes>: Swap file page size (based on stored value size setting, Unit byte) # (DEFAULT:32)
Vm-pages <number>: Number of memory pages in swap partition file # (default:134217728)
Vm-max-threads <number>: Maximum number of threads to operate on swap files (preferably CPU) # (DEFAULT:4)
Glueoutputbuf <yes|no>: # yes|no (Default:yes)
Hash-max-zipmap-entries <number>: # (DEFAULT:64)
Hash-max-zipmap-value <number>: # (DEFAULT:512)
Activerehashing <yes|no>: # yes|no (Default:yes)
Include <*.conf>: Referencing another profile # *.conf path (ex:/path/to/other.conf)
Redis Configuration file Parameters description