1. Problem: misconf redis is configured to save RDB snapshots
127.0.0.1: 6379> set K1 "nob"
(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.
The above error occurs because the disk cannot be written. Reason: it should be caused by force stop of redis snapshot.
It's okay to restart the machine. Hahaha, it's caused by several forced shutdowns.
Some solutions are as follows:
config set stop-writes-on-bgsave-error no
For memory problems, the following methods should be used to view logs,
Add 'vm. overcommit_memory = 1' in/etc/sysctl. conf and restart (or run the command 'sysctl VM. overcommit_memory = 1') to make it take effect.
[References]
1. http://www.linuxidc.com/Linux/2012-07/66079.htm from redis data loss
2. http://www.redicecn.com/html/Linux/20131125/468.html misconf redis is configured to save RDB memory problems caused
3. misconf redis is configured to save RDB snapshots, but is currently not able to persist on disk
Redis troubleshooting methods and experience