Where is the data directory in Redis?

bafla picture bafla · Aug 29, 2015 · Viewed 69.5k times · Source

After writing some data to a redis server, I could read the data from a client. However, how can I find the data directory on the file system?

Answer

The Real Bill picture The Real Bill · Aug 30, 2015

Quickest method: use redis-cli.

redis-cli config get dir

If you have authentication configured, you will need to pass that in using -a password Replacing "password" with your password.