在Redis運行過程中,報錯信息如下:
Redis::CommandError (MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.)
報錯信息直譯:
Redis被配置為保存數據庫快照,但它目前不能持久化到硬盤。用來修改集合數據的命令不能用。請查看Redis日志的詳細錯誤信息。
此報錯大概出現原因是因為 :
強制關閉Redis快照導致不能持久化。 Redis 運行過程中RDB快照無法寫入磁盤
解決方案如下
1.進入到redis目錄
cd /usr/local/redis/bin ./redis-cli
2.進入到redis客戶端后分別輸入
config set stop-writes-on-bgsave-error no
lpush myColour "red"

問題解決
