Skip to content

Change and Save Redis configuration during running

This article shows how to change Redis configuration from command line and save the changes without shutting down Redis.

redis-cli -h IP -p PORT

get all config

config get *
## get prefix
config get p*

change config

config set PARA VALUE
## e.g.
config set protected-mode no

save

config rewrite
## get config_file location and verify changes
info server

Disclaimer
  1. License under CC BY-NC 4.0
  2. Copyright issue feedback me#imzye.me, replace # with @
  3. Not all the commands and scripts are tested in production environment, use at your own risk
  4. No privacy information is collected here
Try my iOS App