编译方法:
curl https://bintray.com/sbt/rpm/rpm > bintray-sbt-rpm.repo
mv bintray-sbt-rpm.repo /etc/yum.repos.d/
yum install sbt
将github上/kafka-manager的×××到/root/ 目录下,并解压好
cd /root/kafka-manager-2.0.0.2
./sbt clean dist
然后漫长的等待后,就可以编译完成了。
编译好的文件在: /root/kafka-manager-2.0.0.2/target/universal/kafka-manager-2.0.0.2.zip
cp /root/kafka-manager-2.0.0.2/target/universal/kafka-manager-2.0.0.2.zip /tmp/
cd /tmp/
unzip kafka-manager-2.0.0.2.zip
mv kafka-manager-2.0.0.2 /usr/local/
cd /usr/local/kafka-manager-2.0.0.2/
vim conf/application.conf 修改下 kafka-manager.zkhosts="192.168.2.4:2181" # 这里改成了我们kafka-manager用的zk的地址
然后启动:
./bin/kafka-manager -Dconfig.file=./conf/application.conf -Dhttp.port=8080