Redis配置文件参数详解

本文详细解析Redis配置文件redis.conf,涵盖Units、INCLUDES、NETWORK、GENERAL、SNAPSHOTTING、SECURITY、LIMITS和APPEND ONLY模式,帮助理解各项参数及其作用。
摘要由CSDN通过智能技术生成

Redis.conf

Redis 的配置文件位于 Redis 安装目录下,文件名为 redis.conf

一般情况下,会单独拷贝出来一份进行操作,来保证初始文件的安全

# 获取所有配置项
config get *

Units(单位)

# Redis configuration file example.
#
# Note that in order to read the configuration file, Redis must be
# started with the file path as first argument:
#
# ./redis-server /path/to/redis.conf

# Note on units: when memory size is needed, it is possible to specify
# it in the usual form of 1k 5GB 4M and so forth:
#
# 1k => 1000 bytes
# 1kb => 1024 bytes
# 1m => 1000000 bytes
# 1mb => 1024*1024 bytes
# 1g => 1000000000 bytes
# 1gb => 1024*1024*1024 bytes
#
# units are case insensitive so 1GB 1Gb 1gB are all the same.
  1. 配置大小单位,开头定义了一些基本的度量单位,只支持bytes,不支持bit

  2. 大小写不敏感

INCLUDES(包含)

################################## INCLUDES ###################################

# Include one or more other config files here.  This is useful if you
# have a standard template that goes to all Redis servers but also need
# to customize a few per-server settings.  Include files can include
# other files, so use this wisely.
#
# Notice option "include" w
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值