1:kafka 相關監控工具 kafka-manager
官網: https://github.com/yahoo/kafka-manager
參考: https://blog.csdn.net/yuan_xw/article/details/79188565
2:下載kafka-manager編譯文件
# 修改配置文件
vim conf/application.conf
# 添加kafka的zk地址
kafka-manager.zkhosts="localhost:2181"
basicAuthentication.enabled=true
basicAuthentication.enabled=${?KAFKA_MANAGER_AUTH_ENABLED}
basicAuthentication.username="admin"
basicAuthentication.username=${?KAFKA_MANAGER_USERNAME}
basicAuthentication.password="admin"
3: 啓動命令
bin/kafka-manager -Dconfig.file=conf/application.conf -Dhttp.port=9000
4:有防火牆的添加執行命令
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --reload
# 訪問
localhost:9000/