2.1.6.1. windows系统
1、路径:C:\LW\kafka_2.12-3.0.2\bin\windows\kafka-server-start.bat , 修改kafka-server-start.bat文件(以实际路径为准)。 添加JMX端口 set JMX_PORT=“9999”
2、重启kafka服务,查看JMX端口。
2.1.6.2. linux系统
1.修改相关配置文件
2、 重启服务,查看JMX端口

Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
2、重启kafka服务,查看JMX端口。
# vim /usr/local/kafka/bin/kafka-run-class.sh 加入以下内容,根据相应ip及端口填写JMX_PORT=12345 (在第一行添加JMX端口)-Djava.rmi.server.hostname=192.168.3.115(在168行添加IP)
2、 重启服务,查看JMX端口

Was this page helpful?
