错误
# set 值时报错
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.
原因
大概意思就是不能持久化吧(网上有人说是内存不足,我查了下我的内存,占比5%)
解决
修改etc/sysctl.conf
,在末尾添加
vm.overcommit_memory=1
生效
重启redis
ps -ef | grep redis
kill -9 PID
redis-server redis.conf