Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 103 lines (79 sloc) 3.819 kb
ed9b544 @antirez first commit
antirez authored
1 # Redis configuration file example
2
3 # By default Redis does not run as a daemon. Use 'yes' if you need it.
4 # Note that Redis will write a pid file in /var/run/redis.pid when daemonized.
5 daemonize no
6
ed329fc @lucsky Allow to specify the pid file from the config file.
lucsky authored
7 # When run as a daemon, Redis write a pid file in /var/run/redis.pid by default.
8 # You can specify a custom pid file location here.
9 pidfile /var/run/redis.pid
10
ed9b544 @antirez first commit
antirez authored
11 # Accept connections on the specified port, default is 6379
12 port 6379
13
14 # If you want you can bind a single interface, if the bind option is not
15 # specified all the interfaces will listen for connections.
16 #
17 # bind 127.0.0.1
18
0150db3 @tmm1 Allow timeout=0 config to disable client timeouts
tmm1 authored
19 # Close the connection after a client is idle for N seconds (0 to disable)
ed9b544 @antirez first commit
antirez authored
20 timeout 300
21
22 # Save the DB on disk:
23 #
24 # save <seconds> <changes>
25 #
26 # Will save the DB if both the given number of seconds and the given
27 # number of write operations against the DB occurred.
28 #
29 # In the example below the behaviour will be to save:
30 # after 900 sec (15 min) if at least 1 key changed
31 # after 300 sec (5 min) if at least 10 keys changed
32 # after 60 sec if at least 10000 keys changed
33 save 900 1
34 save 300 10
35 save 60 10000
36
b8b553c @antirez ability to specify a different file name for the DB
antirez authored
37 # The filename where to dump the DB
38 dbfilename dump.rdb
39
ed9b544 @antirez first commit
antirez authored
40 # For default save/load DB in/from the working directory
41 # Note that you must specify a directory not a file name.
42 dir ./
43
44 # Set server verbosity to 'debug'
45 # it can be one of:
46 # debug (a lot of information, useful for development/testing)
47 # notice (moderately verbose, what you want in production probably)
48 # warning (only very important / critical messages are logged)
49 loglevel debug
50
51 # Specify the log file name. Also 'stdout' can be used to force
52 # the demon to log on the standard output. Note that if you use standard
53 # output for logging but daemonize, logs will be sent to /dev/null
54 logfile stdout
55
b8b553c @antirez ability to specify a different file name for the DB
antirez authored
56 # Set the number of databases. The default database is DB 0, you can select
57 # a different one on a per-connection basis using SELECT <dbid> where
58 # dbid is a number between 0 and 'databases'-1
ed9b544 @antirez first commit
antirez authored
59 databases 16
60
61 ################################# REPLICATION #################################
62
63 # Master-Slave replication. Use slaveof to make a Redis instance a copy of
64 # another Redis server. Note that the configuration is local to the slave
65 # so for example it is possible to configure the slave to save the DB with a
66 # different interval, or to listen to another port, and so on.
67
68 # slaveof <masterip> <masterport>
69
f2aa84b @antirez Lua client added thanks to Daniele Alessandri
antirez authored
70 ################################## SECURITY ###################################
71
72 # Require clients to issue AUTH <PASSWORD> before processing any other
73 # commands. This might be useful in environments in which you do not trust
74 # others with access to the host running redis-server.
75 #
76 # This should stay commented out for backward compatibility and because most
77 # people do not need auth (e.g. they run their own servers).
78
290deb8 @antirez TODO changes, minor change to default redis.conf
antirez authored
79 # requirepass foobared
f2aa84b @antirez Lua client added thanks to Daniele Alessandri
antirez authored
80
285add5 @antirez maxclients implemented, see redis.conf for details
antirez authored
81 ################################### LIMITS ####################################
82
83 # Set the max number of connected clients at the same time. By default there
84 # is no limit, and it's up to the number of file descriptors the Redis process
85 # is able to open. The special value '0' means no limts.
86 # Once the limit is reached Redis will close all the new connections sending
87 # an error 'max number of clients reached'.
88
89 # maxclients 128
90
ed9b544 @antirez first commit
antirez authored
91 ############################### ADVANCED CONFIG ###############################
92
93 # Glue small output buffers together in order to send small replies in a
94 # single TCP packet. Uses a bit more CPU but most of the times it is a win
95 # in terms of number of queries per second. Use 'yes' if unsure.
96 glueoutputbuf yes
10c4361 @antirez Nasty bug of the new DB format fixed, objects sharing implemented
antirez authored
97
98 # Use object sharing. Can save a lot of memory if you have many common
99 # string in your dataset, but performs lookups against the shared objects
100 # pool so it uses more CPU and can be a bit slower. Usually it's a good
101 # idea.
102 shareobjects no
Something went wrong with that request. Please try again.