Redis on Windows - configuration file

I just installed the redis server on Windows from here and started the server in default mode without the specified configuration file.

How to link a configuration file (using Windows) with a server and how to specify a folder for saving dtb?

The folder is as follows:

  • : C: \ Program Files \ Redis \ conf - there is some conf conf file
  • : C: \ Program Files \ Redis \ data - empty
  • : C: \ Program Files \ Redis \ logs - empty
  • file: C: \ Program Files \ Redis \ redis-server.exe
  • file: C: \ Program Files \ Redis \ redis-cli.
+6
source share
1 answer

All you have to do is run redis-server.exe, followed by the name of the configuration file.

eg:

D:\Coding\RedisIO>redis-server.exe redis.windows.conf 

And for the db file you need to add / change a line in the configuration file:

 # The filename where to dump the DB dbfilename dump.rdb 

and below that in the configuration file entry

 # The working directory. # # The DB will be written inside this directory, with the filename specified # above using the 'dbfilename' configuration directive. # # The Append Only File and the QFork memory mapped file will also be created # inside this directory. # # Note that you must specify a directory here, not a file name. # The working directory. # # The DB will be written inside this directory, with the filename specified # above using the 'dbfilename' configuration directive. # # The Append Only File and the QFork memory mapped file will also be created # inside this directory. # # Note that you must specify a directory here, not a file name. dir ./ 
+11
source

Source: https://habr.com/ru/post/982297/


All Articles