2015-02-10 22 views
6

Windows'a redis sunucusunu here'dan yeni yükledim ve sunucuyu belirtilen yapılandırma dosyası olmadan varsayılan modda çalıştırdım.Windows'taki yapılandırma - yapılandırma dosyası

Yapılandırma dosyasını (Windows kullanarak) sunucuya nasıl bağlarım ve dtb'yi kaydetmek için klasörü nasıl belirleyebilirim?

klasör şuna benzer:

  • klasör: C: - C: \ Program Files \ Redis \ conf bazı şablon conf dosyasını
  • klasör var \ Program Files \ Redis \ verilerini - boş
  • klasörü: C: \ Program Files \ Redis \ günlükleri - boş
  • dosyası: C: ​​\ Program Files \ Redis \ Redis-Server.exe
  • dosyası: C: ​​\ Program Files \ Redis \ Redis-cli .

cevap

10

Yapmanız gereken tek şey, redis-server.exe dosyasını ve ardından config dosyanızın dosya adını çalıştırmaktır.

örn:

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

Ve/eklemek yapılandırma dosyasında satır değiştirmek gerekir db dosyası için

: dosyası girdisi config bunun
# The filename where to dump the DB 
dbfilename dump.rdb 

ve aşağıdaki

# 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 ./ 
İlgili konular