Redisの一般的なコマンドと問題点

477 ワード

1、エラーの報告:Redisエラーの解決MISCONF Redis is configured to save RDB snapshots、but it is currently not able to persi...


解決策: 127.0.0.1:6379> config set stop-writes-on-bgsave-error no; confプロファイルにこのコマンドを設定します。初期コマンドは127.0.0.1:6379>config set stop-writes-on-bgsave-error yesで、noに変更します。

2、サービスとして設定して開く:



3、データベース内のすべてのkeysを削除する

flushdb
//         key
flushall