This is an automated email from the ASF dual-hosted git repository.

gongchao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git


The following commit(s) were added to refs/heads/master by this push:
     new 061423d30 [chore] Update readme doc style (#2305)
061423d30 is described below

commit 061423d3019f5f6e756c1873ec316ac8ffce727f
Author: YuLuo <[email protected]>
AuthorDate: Sat Jul 20 14:25:48 2024 +0800

    [chore] Update readme doc style (#2305)
    
    Signed-off-by: yuluo-yx <[email protected]>
    Co-authored-by: tomsun28 <[email protected]>
---
 README.md    | 24 ++++++++++++++----------
 README_CN.md | 30 +++++++++++++++++-------------
 2 files changed, 31 insertions(+), 23 deletions(-)

diff --git a/README.md b/README.md
index c2e27b413..ed8101907 100644
--- a/README.md
+++ b/README.md
@@ -109,21 +109,25 @@
 
 ##### 1:Install quickly via docker   
 
-1. Just one command to get started:
+1. Just one command to get started
 
-```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat```
+   ```shell
+   docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat
+   ```
 
 2. Access `http://localhost:1157` to start, default account: `admin/hertzbeat` 
 
 
 3. Deploy collector clusters (Optional)
 
-```
-docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e 
MANAGER_PORT=1158 --name hertzbeat-collector apache/hertzbeat-collector
-```
-- `-e IDENTITY=custom-collector-name` : set the collector unique identity name.
-- `-e MODE=public` : set the running mode(public or private), public cluster 
or private cloud-edge.
-- `-e MANAGER_HOST=127.0.0.1` : set the main hertzbeat server ip.
-- `-e MANAGER_PORT=1158` : set the main hertzbeat server port, default 1158.
+   ```shell
+   docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 
-e MANAGER_PORT=1158 --name hertzbeat-collector apache/hertzbeat-collector
+   ```
+
+   - `-e IDENTITY=custom-collector-name` : set the collector unique identity 
name.
+   - `-e MODE=public` : set the running mode(public or private), public 
cluster or private cloud-edge.
+   - `-e MANAGER_HOST=127.0.0.1` : set the main hertzbeat server ip.
+   - `-e MANAGER_PORT=1158` : set the main hertzbeat server port, default 1158.
+
 
 Detailed config refer to [Install HertzBeat via 
Docker](https://hertzbeat.apache.org/docs/start/docker-deploy)   
 
@@ -167,7 +171,7 @@ Install the postgresql/mysql database, 
victoria-metrics/iotdb/tdengine database
 
 Detailed steps refer to [Install via 
Docker-Compose](script/docker-compose/README.md)      
 
-##### 5. Install All(hertzbeat+collector+postgresql+tsdb) via kubernetes helm 
charts
+##### 5: Install All(hertzbeat+collector+postgresql+tsdb) via kubernetes helm 
charts
 
 Install HertzBeat cluster in a Kubernetes cluster by Helm chart.
 
diff --git a/README_CN.md b/README_CN.md
index 243ffceb9..64ee35e1d 100644
--- a/README_CN.md
+++ b/README_CN.md
@@ -41,7 +41,7 @@
 
 > `HertzBeat`的强大自定义,多类型支持,高性能,易扩展,低耦合,希望能帮助用户快速搭建自有监控系统。    
 
-----   
+----
 
 ![hertzbeat](home/static/img/home/1.png)
 
@@ -49,7 +49,7 @@
 
 ![hertzbeat](home/static/img/home/9.png)
 
-----   
+----
 
 ## 🥐 模块  
 
@@ -110,21 +110,25 @@
 
 1. `docker` 环境仅需一条命令即可开始     
 
-```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat```
+   ```shell
+   docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat
+   ```
 
 2. 浏览器访问 `http://localhost:1157` 即可开始,默认账号密码 `admin/hertzbeat`
 
-3. 部署采集器集群(可选)
+3. 部署采集器集群(可选)
+
+   ```shell
+   docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 
-e MANAGER_PORT=1158 --name hertzbeat-collector apache/hertzbeat-collector
+   ```
 
-```
-docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e 
MANAGER_PORT=1158 --name hertzbeat-collector apache/hertzbeat-collector
-```
    - `-e IDENTITY=custom-collector-name` : 
配置此采集器的唯一性标识符名称,多个采集器名称不能相同,建议自定义英文名称。
-   - `-e MODE=public` : 配置运行模式(public or private), 公共集群模式或私有云边模式。
-   - `-e MANAGER_HOST=127.0.0.1` : 配置连接主 HertaBeat 服务的对外 IP。
-   - `-e MANAGER_PORT=1158` : 配置连接主 HertzBeat 服务的对外端口,默认1158。
+    - `-e MODE=public` : 配置运行模式(public or private), 公共集群模式或私有云边模式。
+    - `-e MANAGER_HOST=127.0.0.1` : 配置连接主 HertaBeat 服务的对外 IP。
+    - `-e MANAGER_PORT=1158` : 配置连接主 HertzBeat 服务的对外端口,默认1158。
+
 
-更多配置详细步骤参考 
[通过Docker方式安装HertzBeat](https://hertzbeat.apache.org/docs/start/docker-deploy)
+更多配置详细步骤参考 [通过 Docker 方式安装 
HertzBeat](https://hertzbeat.apache.org/docs/start/docker-deploy)
 
 ##### 方式二:通过安装包安装
 
@@ -132,7 +136,7 @@ docker run -d -e IDENTITY=custom-collector-name -e 
MANAGER_HOST=127.0.0.1 -e MAN
 2. 配置 HertzBeat 的配置文件 `hertzbeat/config/application.yml` (可选)
 3. 部署启动 `$ ./bin/startup.sh ` 或 `bin/startup.bat`
 4. 浏览器访问 `http://localhost:1157` 即可开始,默认账号密码 `admin/hertzbeat`
-5. 部署采集器集群(可选)
+5. 部署采集器集群(可选)
    - 下载采集器安装包 `hertzbeat-collector-xx.tar.gz` 到规划的另一台部署主机上 
[Download](https://hertzbeat.apache.org/docs/download)
    - 配置采集器的配置文件 `hertzbeat-collector/config/application.yml` 里面的连接主 HertzBeat 
服务的对外 IP,端口,当前采集器名称(需保证唯一性)等参数 `identity` `mode` (public or private) 
`manager-host` `manager-port`
      ```yaml
@@ -164,7 +168,7 @@ docker run -d -e IDENTITY=custom-collector-name -e 
MANAGER_HOST=127.0.0.1 -e MAN
 
 通过 [Docker-Compose 部署脚本](script/docker-compose) 一次性把 postgresql/mysql 数据库, 
victoria-metrics/iotdb/tdengine 时序数据库和 hertzbeat 安装部署。
 
-详细步骤参考 [通过Docker-Compose安装HertzBeat](script/docker-compose/README.md)  
+详细步骤参考 [通过 Docker-Compose 安装 HertzBeat](script/docker-compose/README.md)  
 
 ##### 方式五:Kubernetes Helm Charts 部署 hertzbeat+collector+postgresql+tsdb
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to