I have installed Redis on my Mac and now I am trying to access Redis config file redis.conf
. Where is it located in macOS?
I have tried looking at various resources, but could not find any helpful information.
I have installed Redis on my Mac and now I am trying to access Redis config file redis.conf
. Where is it located in macOS?
I have tried looking at various resources, but could not find any helpful information.
If Redis is running and you can access it with redis-cli
- try INFO
command. It would expose the location of the config file as the config_file:
field.
Example:
$ redis-cli INFO | grep config_file
There is a chance, however, that the Redis was launched without any config file. Then the config_file:
would be empty.
You can also start Redis with the specific config file like:
$ </path/to/>redis-server </path/to/>redis.conf
To find the location of redis-server
executable, you can once again use the INFO
command:
$ redis-cli INFO | grep executable
For more information refer to the Redis documentation.