开发者

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

开发者 https://www.devze.com 2023-03-25 02:23 出处:网络
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 :

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

精彩评论

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

关注公众号