redis常用操作
2017-09-04 23:30:13| 分类:
LINUX
| 标签:
|举报
|字号大中小 订阅
1、查看当前redis-server启动使用的配置文件
redis-cli info | grep config
2、MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.
$ redis-cli
> config set stop-writes-on-bgsave-error no
3、启动加载db
CONFIG SET dir /tmp/some/directory/other/than/var
CONFIG SET dbfilename temp.rdb
评论这张
转发至微博
转发至微博
评论