Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Redis on Windows - config file

Tags:

redis

I have just installed redis server on Windows from here and ran the server in default mode with no config file specified.

How do I link the config file (using Windows) to the server and how do I specify the folder to save the dtb in?

The folder looks like this:

  • folder: C:\Program Files\Redis\conf - there is some template conf file
  • folder: C:\Program Files\Redis\data - empty
  • folder: C:\Program Files\Redis\logs - empty
  • file: C:\Program Files\Redis\redis-server.exe
  • file: C:\Program Files\Redis\redis-cli.
like image 988
Steef Gregor Avatar asked Feb 10 '15 22:02

Steef Gregor


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.

How do I edit Redis config file?

You can alter the Redis configuration file directly by opening and editing it with your preferred text editor. For example, you can use nano to do so: sudo nano /etc/redis/redis. conf.


2 Answers

If you installed Redis using the MSI package, then Redis was already installed as a Windows service. If you would like to change its settings, you can update the redis.windows-service.conf file found in your installation folder and then restart the Redis service (Run -> services.msc -> Redis -> Restart).

For more detailed instructions, please follow the documentation provided in your installation folder with the name as Windows Service Documentation.docx

like image 130
Airy Avatar answered Oct 13 '22 22:10

Airy


You may have installed Redis 3.2.100 from (https://github.com/microsoftarchive/redis/releases). But this gave me the errors.

To fix that, download Redis 5.0.9 from (https://github.com/tporadowski/redis/releases). Run this server, and you'll be good.

like image 43
Santosh Rajkumar Avatar answered Oct 13 '22 20:10

Santosh Rajkumar