From 304d3e46c793f11538be80746621b3cbd86f3cf3 Mon Sep 17 00:00:00 2001 From: nagocoler Date: Thu, 19 Dec 2024 17:32:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AE=A2=E6=88=B7=E7=AB=AF?= =?UTF-8?q?=E5=90=AF=E5=8A=A8=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- itbaima-monitor/README.md | 10 ++++++++++ itbaima-monitor/client.sh | 0 itbaima-monitor/config/server.json | 1 + 3 files changed, 11 insertions(+) mode change 100644 => 100755 itbaima-monitor/client.sh create mode 100644 itbaima-monitor/config/server.json diff --git a/itbaima-monitor/README.md b/itbaima-monitor/README.md index c8d3d8e..0bd2f88 100644 --- a/itbaima-monitor/README.md +++ b/itbaima-monitor/README.md @@ -4,6 +4,16 @@ * API_BASE_URL=http://localhost:8080 - 后端接口基础地址 +## 数据采集客户端 + +启动前需要配置一下服务端链接信息和网卡信息: + +```json +{"address":"服务端地址","networkInterface":"网卡名称","token":"注册Token"} +``` + +配置完成后直接使用`./client.sh start`一键启动即可,若无执行权限可以`chmod +x client.sh`增加一下执行权限。 + ## 数据汇总服务端 启动前需要先完成以下环境变量配置,若不修改则使用下列默认值。 diff --git a/itbaima-monitor/client.sh b/itbaima-monitor/client.sh old mode 100644 new mode 100755 diff --git a/itbaima-monitor/config/server.json b/itbaima-monitor/config/server.json new file mode 100644 index 0000000..fcff3e3 --- /dev/null +++ b/itbaima-monitor/config/server.json @@ -0,0 +1 @@ +{"address":"服务端地址","networkInterface":"网卡名称","token":"注册Token"} \ No newline at end of file