进入 redis 命令行:
redis-cli
停止 redis 服务:
shutdown
启动 redis 服务:
redis-server
如果报错:
(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.
运行 config set stop-writes-on-bgsave-error no
命令即可解决。