|
14 | 14 |
|
15 | 15 | # By default Redis does not run as a daemon. Use 'yes' if you need it.
|
16 | 16 | # Note that Redis will write a pid file in /var/run/redis.pid when daemonized.
|
17 |
| -daemonize yes |
| 17 | +daemonize no |
18 | 18 |
|
19 | 19 | # When running daemonized, Redis writes a pid file in /var/run/redis.pid by
|
20 | 20 | # default. You can specify a custom pid file location here.
|
21 |
| -pidfile /var/run/redis.pid |
| 21 | +pidfile ./log/redis.pid |
22 | 22 |
|
23 | 23 | # Accept connections on the specified port, default is 6379.
|
24 | 24 | # If port 0 is specified Redis will not listen on a TCP socket.
|
@@ -66,7 +66,7 @@ loglevel notice
|
66 | 66 | # Specify the log file name. Also 'stdout' can be used to force
|
67 | 67 | # Redis to log on the standard output. Note that if you use standard
|
68 | 68 | # output for logging but daemonize, logs will be sent to /dev/null
|
69 |
| -logfile /var/run/redis.log |
| 69 | +logfile ./log/redis.log |
70 | 70 |
|
71 | 71 | # To enable logging to the system logger, just set 'syslog-enabled' to yes,
|
72 | 72 | # and optionally update the other syslog parameters to suit your needs.
|
@@ -105,9 +105,9 @@ databases 16
|
105 | 105 | #
|
106 | 106 | # save ""
|
107 | 107 |
|
108 |
| -save 900 1 |
109 |
| -save 300 10 |
110 |
| -save 60 10000 |
| 108 | +#save 900 1 |
| 109 | +#save 300 10 |
| 110 | +#save 60 10000 |
111 | 111 |
|
112 | 112 | # By default Redis will stop accepting writes if RDB snapshots are enabled
|
113 | 113 | # (at least one save point) and the latest background save failed.
|
@@ -150,7 +150,7 @@ dbfilename dump.rdb
|
150 | 150 | # The Append Only File will also be created inside this directory.
|
151 | 151 | #
|
152 | 152 | # Note that you must specify a directory here, not a file name.
|
153 |
| -dir ./ |
| 153 | +dir ./db/ |
154 | 154 |
|
155 | 155 | ################################# REPLICATION #################################
|
156 | 156 |
|
@@ -607,7 +607,7 @@ ds:write_buffer_size 64
|
607 | 607 | ds:block_size 32
|
608 | 608 | ds:max_open_files 4000
|
609 | 609 | ds:block_restart_interval 16
|
610 |
| -ds:path ./leveldb |
| 610 | +ds:path ./db/leveldb |
611 | 611 | #rl:ttl,强制设置redis里key的过期时间,仅对rl系列命令有效
|
612 | 612 | rl:ttl 0
|
613 | 613 | #rl:ttlcheck 当key的ttl在此范围内被读取,则过期期间重设置为rl:ttl
|
|
0 commit comments