1,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.
緣由:應該是之前強制停止redis快照導致
解決方案:
config set stop-writes-on-bgsave-error no
(linux)未用root啟動,用的app使用者(沒有最高許可權) 強制shutdown後,需要執行該命令後,即可用程式儲存資料到redis資料庫中。
相關操作:
(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
set 'name' 'shenhui'
-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
+OK
set 'name' 'shenhui'
+OK