Redis.conf

Unit configuration files are case-insensitive # 1k => 1000 bytes # 1kb => 1024 bytes # 1mb => 1000000 bytes # 1mb => 1024*1024 bytes # 1g => 1000000000 bytes Bytes # 1GB => 1024*1024*1024 bytes ………… # include /path/to/local.conf # include /path/to/other.conf ………… Bind the IP 127.0.0.1 binding protected mode - yes protected mode port port 6379 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # GENERAL # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # daemonize yes daemon runs, the default no pidfile/WWW/server/redis/redis pid if after the run, # Specify the pid # Specify the server verbosity level. # This can be one of: # debug (a lot of information, useful for development/testing) # verbose (many rarely useful info, But not a mess like the debug level) # notice (Moderate verbose, what you want in production probably), # WARNING (only very important/critical messages are logged) LOGLEVEL NOTICE LOGFILE "/ WWW/server/redis/redis. Log" location # dbid is a number between 0 and the databases' databases' - 1 16 16 default database persistence, redis is an in-memory database, Save 300 10 save 60 10000 stop-she-on-bgsave-error yes save 300 10 save 60 10000 stop-she-on-bgsave-error yes save 300 10 save 60 10000 stop-she-on-bgsave-error yes RDBCOMPRESSION YES Compression of RDB files RDBChecksum: Check DBFilename Dump. RDBChecksum: Check DBFilename Dump  ################################# ################################# SECURITY ################################# # Requirepass foobared password # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # CLIENTS # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # maxclients 10000 the maximum number of connections # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # the MEMORY MANAGEMENT# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # maxmemory < bytes > maximum capacity # maxmemory - policy noeviction memory is full of what to do with # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # APPEND ONLY MODE # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # AOF AppendOnly No is not enabled by default. # appendFsync always Sync appendFsync everysec every second One second of data may be lost when # appendfsync no is not executed and the operating system synchronizes the data itself