命令行:
暂时生效,适合于做测试,或者线上马上服务修改,重启失效
CONFIG set stop-writes-on-bgsave-error no OK CONFIG get stop-writes-on-bgsave-error 1) "stop-writes-on-bgsave-error" 2) "no"
配置
在config文件里直接修改,redis重启时读取文件生效