在 Redis 终端上进行读写操作,发现只读不可写, GET 操作是正常的, SET 操作提示错误:(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.
如图所示:

解决办法
配置参数vm.overcommit_memory = 1
具体原因: http://blog.tanteng.me/2016/07/misconf-redis-configured-save-rdb-snapshots/