开发者

What should I do if I delete the redis vm file?

Now the redis can not background开发者_如何学JAVA save. I just want to dump it and restart.

How could I dump the redis? I've always this error :

"Can't re-open the VM swap file: /tmp/redis.swap. Exiting."


  1. Delete the dump.rdb file. (or simply move it somewhere e.g ~/saved-rdb/., where redis-server won't find it.)

  2. Start redis-server

Note: dump.rdb is your data. By deleting it you are starting fresh (meaning data lost).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜