RedisCentOS6.4x86 _ 64 default configuration (if you have any misunderstanding, please correct it) # Generatedbyinstall_server.sh ### Redisconfigurationf
Redis CentOS 6.4 x86_64 default configuration (if you have any misunderstanding, please correct it) # Generated by install_server.sh ### Redis configuration f
Redis CentOS 6.4 x86_64 default configuration (if you have any misunderstanding, please correct it :))
# Generated by install_server.sh ##
# Redis configuration file example
# Note on units: when memory size is needed, it is possible to specify
#1 k = & gt; 1000 bytes 1 m 1g
# 1kb => 1024 bytes 1 mb 1 gb
# Units are case insensitive so 1 GB 1 Gb 1 gB are all the same.
Daemonize yes # whether to run in daemon mode
Pidfile/var/run/redis_62.16.pid # pid file location in daemon mode
Port 6379 # When the listening port is set to 0, TCP socket is not monitored.
# Bind 127.0.0.1 # bind an interface to listen to connections. If this parameter is not set, all connections are monitored.
# Unixsocket/tmp/redis. sock # unix socket used to listen for connection
# Unixsocketperm 755 # socket File Permissions
Timeout 0 # automatically disconnect after the client is idle for N seconds. 0 is unlimited # request timeout
Tcp-keepalive 0 # TCP connection survival time, 0 unlimited, 60 (seconds)
Loglevel notice # Log Level debug (debugging, a large amount of log information) verbose (detailed) notice (moderate details) warning (only records serious information)
Logfile/var/log/redis_62.16.log # Use stdout To Send Logs to/dev/null
# Syslog-enabled no # enable system logs
# Syslog-ident redis # system log ID
# Syslog-facility local0 # system log USER or LOCAL0-LOCAL7
Databases 16 # Number of enabled databases. The default value is 0. SELECT is used. Switch (starting from 0)
Save 900 1 # follow up the number of key changes, create snapshots during the period, and save data to the disk
Save 300 10 # more than 10 key operations, 300 seconds to save a disk
Save 60 10000 # more than 10000 times 60 seconds; set to save "to save the disk in real time
Stop-writes-on-bgsave-error yes # writing is prohibited when a disk storage error occurs.
Rdbcompression yes # Use LZF to compress the storage disk
Rdbchecksum yes # disk verification CRC64 Verification
Dbfilename dump. rdb # Name of the stored database file
Dir/var/lib/redis/6379 # working directory (Data Storage path)
# Slaveof # Master server information on the slave server
# Masterauth # Master server password
Slave-serve-stale-data yes # accessible from the server
Slave-read-only yes # slave server read-only
# Repl-ping-slave-period 10 # interval of sending ping information from the server: 10 seconds
# Repl-timeout 60 # timeout
Repl-disable-tcp-nodelay no # enable small TCP packets (system processing will consume some time)
Slave-priority 100 # the smaller the slave server priority, the higher the priority.
# Requirepass foobared # Use the password. AUTH is required before running the command. Verify
# Rename-command CONFIG b840fc02d524045429941cc15f59e41cb7be6c52 # command rename
# Rename-command CONFIG "" # command removal # problems may occur on the slave server
# Maxclients 10000 # default 10000 Max connections
# Maxmemory # Memory limit
# Maxmemory-policy volatile-lru # (based on the minimum number of recently used algorithms) the cleanup rules are as follows:
# Volatile-lru-> remove the key with an expire set using an LRU algorithm
# Allkeys-lru-> remove any key accordingly to the LRU algorithm
# Volatile-random-> remove a random key with an expire set
# Allkeys-random-> remove a random key, any key
# Volatile-ttl-> remove the key with the nearest expire time (minor TTL)
# Noeviction-> don't expire at all, just return an error on write operations
# Maxmemory-samples 3 # number of keys checked by the LRU Algorithm
Appendonly no # enable AOF log Mode
# Appendfilename appendonly. aof # AOF mode file name
# Appendfsync always # record all operations
Appendfsync everysec # record once per second
# Appendfsync no # no record
No-appendfsync-on-rewrite no # Whether to overwrite AOF files
Auto-aof-rewrite-percentage 100 # automatically overwrite the AOF file after the maximum size of 100% is exceeded
Auto-aof-rewrite-min-size 64 mb # AOF file size limit
Lua-time-limit 5000 # maximum Lua code execution time, 0 is unlimited
Slowlog-log-slower-than 10000 # slow execution record
Slowlog-max-len 128 # Maximum length of slow execution records
############################## Advanced Configuration ####### ########################
Hash-max-ziplist-entries 512
Hash-max-ziplist-value 64
List-max-ziplist-entries 512
List-max-ziplist-value 64
Set-max-intset-entries 512
Zset-max-ziplist-entries 128
Zset-max-ziplist-value 64
Activerehashing yes
# Client category restrictions:
# Normal-> normal clients
# Slave-> slave clients and MONITOR clients
# Pubsub-> clients subcribed to at least one pubsub channel or pattern
# Client-output-buffer-limit
Client-output-buffer-limit normal 0 0 0
Client-output-buffer-limit slave 256 mb 64 mb 60
Client-output-buffer-limit pubsub 32 mb 8 mb 60
Hz 10 # classification of key-value Usage Frequency
Aof-rewrite-incremental-fsync yes # Write AOF files at intervals
# Include/path/to/local. conf # introduce configuration
Recommended reading:
Redis cluster details
Install Redis in Ubuntu 12.10 (graphic explanation) + Jedis to connect to Redis
Redis series-installation, deployment, and maintenance
Install Redis in CentOS 6.3
Redis details: click here
Redis: click here