redis动态修改参数

通过 config get 命令可以查看参数。

通过config set 可以修改某些参数

动态关闭redis的aof功能:(不要忘了也修改配置文件中的aof选项使其保持一致)

127.0.0.1:6378> CONFIG set appendonly no
OK
127.0.0.1:6378> CONFIG GET appendonly
1) "appendonly"
2) "no"

原文地址:https://www.cnblogs.com/fanxuanhui-linux/p/6391857.html