简体   繁体   English

如何结束Redis监控

[英]How to end Redis monitoring

In Redis there's a MONITOR command that is quite handy to watch all the commands that are being processed. 在Redis中有一个MONITOR命令 ,可以很方便地查看正在处理的所有命令。

Once you've started monitoring, is there any way to stop monitoring from the same session? 一旦开始监控,有没有办法停止同一会话的监控?

If you kill the connection, does the monitoring end (as opposed to resource-intensive monitoring continuing on the server)? 如果你终止连接,监控结束(而不是在服务器上继续进行资源密集型监控)?

There is no API to do it - just close the connection. 没有API可以做到 - 只需关闭连接即可。

The redis-cli command does not implement anything specific when the user hits CTRL-C to interrupt the program. 当用户按CTRL-C中断程序时,redis-cli命令不会实现任何特定的操作。 Closing the connection should stop the monitoring. 关闭连接应该停止监视。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM