官网
https://github.com/yahoo/kafka-manager/releases
下载安装启动
wget https://github.com/yahoo/kafka-manager/archive/2.0.0.2.tar.gz
mv 2.0.0.2.tar.gz kafka-manager.tar.gz
tar -zxf kafka-manager.tar.gz
mv kafka-manager-2.0.0.2/ kafka-manager
vi kafka-manager/conf/application.conf
kafka-manager.zkhosts=”127.0.0.1:2181”
安装sbt:
curl https://bintray.com/sbt/rpm/rpm > bintray-sbt-rpm.repo
sudo mv bintray-sbt-rpm.repo /etc/yum.repos.d/
sudo yum install sbt -y
vi ~/.sbt/repositories
1 | [repositories] |
sbt -version
[info] [launcher] getting org.scala-sbt sbt 1.3.3 (this may take some time)…
编译:
cd kafka-manager/
./sbt clean dist
mkdir -p bin
cp /data/sourcecode/kafka-manager/target/universal/kafka-manager-2.0.0.2.zip /data
unzip kafka-manager-2.0.0.2.zip
cd /data/kafka-manager-2.0.0.2/bin
启动:
nohub /data/kafka-manager-2.0.0.2/bin/kafka-manager -Dhttp.port=9090 &
/data/kafka-manager-2.0.0.2/bin/kafka-manager -Dhttp.port=9090
开放端口:
[root@localhost ~]# firewall-cmd –query-port 9090/tcp
[root@localhost ~]# firewall-cmd –permanent –add-port=9090/tcp
[root@localhost ~]# firewall-cmd –reload