zookeeper 开启jmx
时间: 2023-10-21 16:05:52 浏览: 144
要开启zookeeper的JMX服务,你需要进行以下步骤:
1. 打开zkServer.sh脚本,修改以下环境变量:
- 将JMXLOCALONLY的值修改为false
- 将JMXHOSTNAME的值修改为你的IP地址
- 将JMXPORT的值修改为21811
- 将JMXSSL的值修改为false
- 将JMXLOG4J的值修改为false
2. 使用zkServer.sh脚本重启zookeeper:
- 运行命令:./zkServer.sh restart
3. 打开cmd命令行窗口,使用jConsole连接zookeeper:
- 运行命令:jconsole
请注意,确保在zkServer.sh脚本中正确设置了JMX相关的环境变量,并且在jConsole连接zookeeper之前,确保已经正确启动了zookeeper。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [zookeeper使用(五)---zookeeper开启JMX服务](https://blog.csdn.net/wangdamingll/article/details/108750397)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文