NoSQL之【Redis】学习(二):配置说明
发布时间:2020-12-13 13:34:39 所属栏目:百科 来源:网络整理
导读:继上一篇 NoSQL之【Redis】学习(一) 之后,在开始操作Redis之前,先了解 redis.conf 的文件: # yes:后台运行;no:不是后台运行(老版本默认) daemonize yes # redis的进程文件 pidfile /var/run/redis.pid # 端口 port 6379 # bind_address 绑定地址的
继上一篇NoSQL之【Redis】学习(一)之后,在开始操作Redis之前,先了解redis.conf的文件: # yes:后台运行;no:不是后台运行(老版本默认) daemonize yes 更详细的说明请见:redis.conf中文版 样版: daemonize yes pidfile /var/run/redis.pid port 6379 #bind 127.0.0.1 unixsocket /tmp/redis.sock # unixsocketperm 755 timeout 0 loglevel notice logfile /var/log/redis/redis.log databases 16 save 900 1 save 300 10 save 60 10000 stop-writes-on-bgsave-error yes rdbcompression yes rdbchecksum no dbfilename dump.rdb dir /var/lib/redis # slaveof <masterip> masterport> # masterauth master-password> slave-serve-stale-data yes slave-read-only yes repl-ping-slave-period 10 repl-timeout 60 slave-priority 100 # requirepass foobared # rename-command CONFIG "" maxclients 10000 maxmemory 65536 # maxmemory-policy volatile-lru # maxmemory-samples 3 appendonly no appendfilename appendonly.aof # appendfsync always appendfsync everysec # appendfsync no no-appendfsync-on-rewrite no auto-aof-rewrite-min-size 64mb lua-time-limit 5000 slowlog-log-slower-than 10000 slowlog-max-len 128 hash-max-ziplist-entries 512 hash-max-ziplist-value 64 list-max-ziplist-entries 512 list-max-ziplist-value 64 set-max-intset-entries 512 zset-max-ziplist-entries 128 zset-max-ziplist-value 64 activerehashing yes client-output-buffer-limit normal 0 0 0 client-output-buffer-limit slave 256mb 64mb 60 client-output-buffer-limit pubsub 32mb 8mb 60 # include /path/to/local.conf # include /path/to/other.conf (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 字符及文本处理之二:grep及正则表达式详解
- VideoIO Flash-based audio and video communication
- 如何自动清除swift中的NSUserDefault值?
- ScrollView
- Error:Flash Download Failed-"Cortex-M3"
- c# – 无法将IQueryable <>转换为IOrderedQueryable错误
- React 教程第九篇 —— 生命周期
- 菜鸟笔记5月4日(一些函数如:1,OUTER APPLY 用法 2,FOR X
- 大话设计模式-第05章 会修电脑不会修收音机?-依赖倒转原
- xml – 如何在不同的复杂类型定义中重用它?