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(从)
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
推荐阅读更多精彩内容
- 1、Units单位 配置大小单位,开头定义了一些基本的度量单位,只支持bytes,不支持bit 对大小写不敏感 2...
- 因为主要测试从数据库中拿数据,所以在redis中,我只写了存取数据的方法,代码如下: redis核心代码写好后,就...
- 官方站点:https://github.com/rolando/scrapy-redis scrapy-redis...
- 更新更新,节前没事,摸摸鱼,敲敲代码,就很舒服了。 用户权限 先抄抄大佬怎么写的 使用JWT进行认证 用户注册之后...