Redis config command

Redis config command

 

config set: Dynamically modify parameters, invalid after restart

config set appendonly yes  

config set save "90 1 30 10 60 100"  

 

 

config get: You can view all parameters that can be set using the config set command

config get *  

 

 

config rewrite: write dynamic commands to redis.conf (only available in redis 2.8 and later)

config rewrite

Notice:

The rewrite of the redis.conf file by the config rewrite command is atomic and consistent: if a rewrite error occurs or the server crashes during the rewrite, the rewrite fails and the original redis.conf file is not modified. If the rewrite is successful, the redis.conf file is the new file after the rewrite.

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326450215&siteId=291194637