redis.conf 配置信息:读取及修改命令

相关资源 网址
官方地址(网页中 Command + F,输入井号“#”,方便查看没有注释的行) http://download.redis.io/redis-stable/redis.conf
配置选项 — Redis 命令参考 http://redisdoc.com/configure/index.html
  • 相关命令:
命令 作用
config help 1. CONFIG <subcommand> arg arg ... arg. Subcommands are:
2. GET <pattern> -- Return parameters matching the glob-like <pattern> and their values.
3. SET <parameter> <value> -- Set parameter to value.
4. RESETSTAT -- Reset statistics reported by INFO.
5. REWRITE -- Rewrite the configuration file.
config get *
  • redis.conf 配置项
redis.conf 配置项 含义
dbfilename dump.rdb RDB 备份文件名
dir ./ RDB 备份文件保存的目录,AOF 文件也在这个目录下创建;必须指定为目录,不能是一个文件名
databases 16 设置数据库数量;默认数据库是 DB 0,通过命令:select <dbid> 切换数据库
appendonly no
appendfilename "appendonly.aof"
原文地址:https://www.cnblogs.com/cag2050/p/10539121.html