redis配置文件redis.conf详细说明
1、daemonize
1 | # By default Redis does not run as a daemon. Use 'yes' if you need it. |
2、pidfile
1 | # When running daemonized, Redis writes a pid file in /var/run/redis.pid by |
3、port
1 | # Accept connections on the specified port, default is 6379. |
4、bind
1 | # If you want you can bind a single interface, if the bind option is not |
5、timeout
1 | # Close the connection after a client is idle for N seconds (0 to disable) |
6、logfile
1 | # Specify the log file name. Also 'stdout' can be used to force |
7、databases
1 | # Set the number of databases. The default database is DB 0, you can select |
8、save
1 | # |
9、rdbcompression
1 | # Compress string objects using LZF when dump .rdb databases? |
10、dbfinename
1 | # The filename where to dump the DB |
11、dir
1 | # The working directory. |
12、slaveof
1 | # Master-Slave replication. Use slaveof to make a Redis instance a copy of |
13、masterauth
1 | # If the master is password protected (using the "requirepass" configuration |
14、requirepass
1 | # Require clients to issue AUTH <PASSWORD> before processing any other |
15、maxclient
1 | # Set the max number of connected clients at the same time. By default there |
16、maxmemory
1 | # Don't use more memory than the specified amount of bytes. |
17、appendonly
1 | # By default Redis asynchronously dumps the dataset on disk. If you can live |
18、appendfsync
1 | # The fsync() call tells the Operating System to actually write data on disk |
19、vm-enabled
1 | # Virtual Memory allows Redis to work with datasets bigger than the actual |
20、vm-swap-file
1 | # This is the path of the Redis swap file. As you can guess, swap files |
21、vm-max-memory
1 | # vm-max-memory configures the VM to use at max the specified amount of |
22、vm-page-size
1 | # Redis swap files is split into pages. An object can be saved using multiple |
23、vm-pages
1 | # Number of total memory pages in the swap file. |
24、vm-max-threads
1 | # Max number of VM I/O threads running at the same time. |
25、hash-max-zipmap
1 | # Hashes are encoded in a special way (much more memory efficient) when they |
26、activerehashing
1 | # Active rehashing uses 1 millisecond every 100 milliseconds of CPU time in |