Reputation: 5353
I want to reset the statistics redis shows me in INFO
command.
I read about https://redis.io/commands/config-resetstat
But for some reason it returns error:
redis> CONFIG RESETSTAT
ERR unknown command `CONFIG`, with args beginning with: `RESETSTAT`,
What am I doing wrong? I don't want to restart server, since I use digitalocean and I don't have direct SSH access, I have only access to redis-cli.
Upvotes: 0
Views: 995
Reputation: 9594
@for_stack is right, i want to expand the answer. It is not possible to use config
command unless you/administrator modify the configuration file which requires a server access and restart.
How they disabled?
The CONFIG
command was renamed into an unguessable name.
rename-command CONFIG b840fc02d524045429941cc15f59e41cb7be6c52
It is also possible to completely disable it (or any other command) by renaming it to the empty string.
rename-command CONFIG ""
You need to request your administrator(if it is possible) to remove that lines from the configuration file.
Upvotes: 2