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/