zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    冒泡排序
    跑马(行转列,列转行)
    选择排序
    day06-迭代器
    day05-装饰器作业
    day07-生成器
    day08-内置函数和匿名函数
    day09-正侧表达式
    144-SpringBoot的编码问题?
    143-SprinBoot如何使用Servlet?
  • 原文地址:https://www.cnblogs.com/chenge-0401/p/10491205.html
Copyright © 2011-2022 走看看