Redis中的数据目录在哪里? [英] Where is the data directory in Redis?
本文介绍了Redis中的数据目录在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在将一些数据写入redis服务器后,我可以从客户端读取数据。
但是,如何在文件系统上找到数据目录?
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?
推荐答案
最快的方法:使用redis-cli 。
Quickest method: use redis-cli.
redis-cli config get dir
如果您配置了身份验证,则需要使用 -a密码
将密码替换为密码。
If you have authentication configured, you will need to pass that in using -a password
Replacing "password" with your password.
这篇关于Redis中的数据目录在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文