这是一个Redis 2.8.13在centos上的生产实例。
在我们的redis.conf中,我们有这样的:
rename-command CONFIG ""
现在,我们要运行需要我们使用CONFIG命令的延迟监视器。
我们有root权限,这是我们自己的专用服务器。 是否有可能修改conf文件并重新加载configuration而不重新启动redis? (这是一个生产系统)
redis无法重新加载redis.conf而无需重新启动。 您将需要重新启动redis。
这一次,请仔细留意redis.conf中给出的示例和警告:
# Command renaming. # # It is possible to change the name of dangerous commands in a shared # environment. For instance the CONFIG command may be renamed into something # hard to guess so that it will still be available for internal-use tools # but not available for general clients. # # Example: # # rename-command CONFIG b840fc02d524045429941cc15f59e41cb7be6c52 # # It is also possible to completely kill a command by renaming it into # an empty string: # # rename-command CONFIG "" # # Please note that changing the name of commands that are logged into the # AOF file or transmitted to slaves may cause problems.