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
  • 相关阅读:
    PyQt 滚动条自动到最底部
    Python 装饰器示例,计算函数或方法执行时间
    pyuic5将.ui文件转为.py文件
    Python pyinstaller 参数
    Win+R 常用命令
    CODEVS 2171 棋盘覆盖
    P3924 康娜的线段树
    P1850 换教室
    U33405 纽约
    POJ
  • 原文地址:https://www.cnblogs.com/chenge-0401/p/10491205.html
Copyright © 2011-2022 走看看