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?
相关问题
- How to access the camera from my Windows Phone 8 a
- Getting Redis Master address from Sentinel C#
- Wordpress change all 404 to 410 error code
- Configuring Redis to play nice with AppHarbor
- Why do we need Redis for running CKAN?
Quickest method: use redis-cli.
If you have authentication configured, you will need to pass that in using
-a password
Replacing "password" with your password.Find your Redis configuration directory, probably
/etc/redis
. Then look in the config file calledredis.conf
and find the line that startsdir
.It will look similar to this:
This will do the job slowly but surely if you can't be bothered to look :-)
or if you want the config filename as well:
Other possibilities you can check are whether Redis was started with a custom config file as its first parameter like this:
or with the
dir
option set on the commandline like this:Use
to look for these options.