From 867b1cb3561bcde52afad240a0aed8d45109afbf Mon Sep 17 00:00:00 2001 From: "chen.yang" Date: Thu, 5 Aug 2021 19:56:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=86=85=E5=AE=B9.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chen.yang --- Software/System/NATS/NATS_详解.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Software/System/NATS/NATS_详解.md b/Software/System/NATS/NATS_详解.md index 0a1ce60..8d6aa32 100644 --- a/Software/System/NATS/NATS_详解.md +++ b/Software/System/NATS/NATS_详解.md @@ -63,6 +63,9 @@ nats-server -a -p # 显示调试信息 nats-server -V nats-server -VV +# 指定 http/https 监控端口,配合 Web 浏览器或 nats-top 工具使用 +nats-server -m +nats-server -ms ``` ## 3.Golang Client API @@ -171,6 +174,15 @@ nats request "cli.weather.beijing" 'Weather Service' --raw ### 4.6.nats-top +nats-top is a top-like tool for monitoring nats-server servers. + +通过 [官方 gihub](https://github.com/nats-io/nats-top) 下载对应安装包进行安装。该工具需要配合 nats-server 使用: + +```bash +nats-server -m 8888 +nats-top -m 8888 +``` + ### 4.7.nats-bench ### 4.8.natsboard