当前位置:操作系统 > Unix/Linux >>

redis批量删除key,与出现的问题解决(MISCONF Redis is configured to save RDB snapshots)

redis批量删除key,与出现的问题解决(MISCONF Redis is configured to save RDB snapshots)
 
删除key
./redis-cli -a password -n 0 keys "/test/*" | xargs ./redis-cli -a password -n 0 del
-a   auth  +  password 表示用户验证

 

 
del 表示删除
 
之后会出现如下错误
 
(error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.
 
使用如下命令解决:
 
config set stop-writes-on-bgsave-error no

 

 
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,