美文网首页
redis.conf(从)

redis.conf(从)

作者: 柒黍 | 来源:发表于2018-10-24 22:39 被阅读0次
bind 127.0.0.1
port 6000
slaveof 127.0.0.1 6379

################################# GENERAL #####################################

# By default Redis does not run as a daemon. Use 'yes' if you need it.
# Note that Redis will write a pid file in /usr/local/var/run/redis.pid when daemonized.
daemonize no

supervised no
pidfile "/Users/leon/develop/redis/redis_6000.pid"
loglevel notice
logfile ""

# Set the number of databases. The default database is DB 0, you can select
# a different one on a per-connection basis using SELECT <dbid> where
# dbid is a number between 0 and 'databases'-1
databases 16

################################ SNAPSHOTTING  ################################

# save 300 10
# save 60 10000
stop-writes-on-bgsave-error yes
rdbcompression yes
rdbchecksum yes
dbfilename "dump-6000.rdb"

# The working directory.
dir "/Users/leon/develop/redis"

############################## APPEND ONLY MODE ###############################
appendonly no
appendfilename "appendonly.aof"
appendfsync everysec
no-appendfsync-on-rewrite no
auto-aof-rewrite-percentage 100
auto-aof-rewrite-min-size 64mb
aof-load-truncated yes

###############################       END      ###############################

相关文章

网友评论

      本文标题:redis.conf(从)

      本文链接:https://www.haomeiwen.com/subject/xueftqtx.html