redis config

常用配置
bind ip
port port
dir /path  日志路径
timeout 多少秒空闲,自动断开连接
database 16数据库个数
 
 
RDB持久化相关的
rdbcompression rdb开关 默认yes
dbfilename dump.rdb 日志文件名
save m n m秒写入n次,自动触发保存   待测试
 
aof持久化
appendOnly no 默认关闭
appendfsync everySecond 每秒同步
appnedfsync no 让机器自己决定什么时候回写日志
appendfsync always 总是写日志影响响应效率
auto-aof-rewrite-percentage 100 aof日志文件重写策略
auto-aof-rewrite-min-size 64mb
 
 
主从:
slaveof ip port  当某个机器的从库
slave-read-only yes 是否是只读
 
 
 
内存回收相关
maxmemory  bytes
# volatile-lru -> remove the key with an expire set using an LRU algorithm
# allkeys-lru -> remove any key according to the LRU algorithm
noeviction -> don't expire at all, just return an error on write operations
posted @ 2019-03-07 17:47  教主陈  阅读(312)  评论(0编辑  收藏  举报