Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Redis, redis fatal error can't open config file

I am running Redis on Windows and have not been able to run it using the config file.

I tried running:

redis-server 'filepath'/conf/redis.conf

but I get the error saying

"redis fatal error can't open config file"

How can I resolve this issue and have the Redis server read the config file?

like image 766
Mustard Tiger Avatar asked Apr 10 '17 17:04

Mustard Tiger


People also ask

How do I get Redis config?

You can obtain a list of all the supported configuration parameters by typing CONFIG GET * in an open redis-cli prompt. All the supported parameters have the same meaning of the equivalent configuration parameter used in the redis.

Where is my Redis config file?

The Redis configuration file is located at installdir/redis/etc/redis. conf.


2 Answers

This is an example of how I solved mine

redis-server C:/Users/<name>/Downloads/redis/64bit/redis.conf & --daemonize yes
like image 93
holard Avatar answered Sep 21 '22 06:09

holard


For windows:

redis-server "CONFIG_FILE_PATH"

Please make sure that config and log file have file read and write permission. You can also specify the config path for Linux in the same way.

like image 28
Aniket Panchal Avatar answered Sep 22 '22 06:09

Aniket Panchal