sql >> Base de Datos >  >> NoSQL >> Redis

redis dump.rdb / guardar archivos pequeños

Para ser un poco más útil... Cómo encontrar o configurar dónde Redis está guardando el archivo dump.rdb (servidor ubuntu):Primero encuentre su archivo redis.conf:En su terminal, ejecute:

ps -e aux | grep redis

Encontré mi archivo redis.conf en:

var/etc/redis/

Si el suyo es el mismo lugar, abra el archivo con:

pico var/etc/redis/redis.conf

Busque:

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

# The working directory.
#
# The DB will be written inside this directory, with the filename specified
# above using the 'dbfilename' configuration directive.
#
# Also the Append Only File will be created inside this directory.
#
# Note that you must specify a directory here, not a file name.
dir /var/lib/redis

Dependiendo de su configuración para "dbfilename" y "dir", ahí es donde encontrará su archivo redis dump.rdb.

Actualizar :Para ver sus configuraciones de redis simplemente ejecute:

redis-cli CONFIG GET *