Skip to content

Commit

Permalink
[home]update zookeeper help Doc (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsun28 committed May 21, 2022
1 parent 3b6b4d8 commit f0dc867
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
21 changes: 12 additions & 9 deletions home/docs/help/zookeeper.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,35 +60,38 @@ sidebar_label: Zookeeper监控

# 注意
## zookeeper四字命令
>因为目前的实现方案有限,使用的是zookeeper提供的四字命令来收集指标
>目前的实现方案使用的是zookeeper提供的四字命令来收集指标
需要用户自己将zookeeper的四字命令加入白名单

加白步骤
>1.找到我们zookeeper的配置文件,一般是zoo.cfg
> 1.找到我们zookeeper的配置文件,一般是zoo.cfg
>
>2.配置文件中加入以下命令
> 2.配置文件中加入以下命令
```shell
# 将需要的命令添加到白名单中
4lw.commands.whitelist=stat, ruok, conf, isro

# 将所有命令添加到白名单中
4lw.commands.whitelist=*
```
>3.重启服务
```shell

> 3.重启服务
```shell
zkServer.sh restart
```

## netcat协议
限于目前实现方案的原因,目前需要我们部署zookeeper的linux服务器
安装netcat的命令环境(后期我们会寻找其他的解决方案)
目前实现方案需要我们部署zookeeper的linux服务器
安装netcat的命令环境

>netcat安装步骤
> netcat安装步骤
```shell
yum install -y nc
```

如果终端显示以下信息则说明安装成功
如果终端显示以下信息则说明安装成功
```shell
Complete!
```
7 changes: 7 additions & 0 deletions home/sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@
{
"type": "category",
"label": "操作系统",
"items": [
"help/zookeeper"
]
},
{
"type": "category",
"label": "中间件",
"items": [
"help/linux"
]
Expand Down

0 comments on commit f0dc867

Please sign in to comment.