github地址:https://github.com/smartloli/kafka-eagle-bin/
github介绍:https://github.com/smartloli/EFAK
官网下载:https://www.kafka-eagle.org/
github下载地址:https://github.com/smartloli/kafka-eagle-bin/blob/master/efak-web-3.0.2-bin.tar.gz
将下载好的压缩包上传至linux指定位置
tar -zxvf kafka-eagle-bin-3.0.1.tar.gz
cd kafka-eagle-bin-3.0.1
tar -zxvf efak-web-3.0.1-bin.tar.gz
cd efak-web-3.0.1
1、来到安装目录conf文件夹下:
cd /usr/local/kafka-eagle-bin-3.0.1/efak-web-3.0.1/conf
2、编辑配置文件
vim system-config.properties
3、修改zookeeper配置和mysql连接配置
原zookeeper的相关配置:
修改后的zookeeper配置
efak.zk.cluster.alias=cluster1,cluster2
cluster1.zk.list=127.0.0.1:2181
4、修改mysql配置
原mysql配置:
修改后的mysql配置:
efak.driver=com.mysql.cj.jdbc.Driver
efak.url=jdbc:mysql://127.0.0.1:3306/ke?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=Asia/Shanghai
efak.username=root
efak.password=<你的mysql数据库密码>
5、在/etc/profile配置文件中配置环境变量
vim /etc/profile
export KE_HOME=/usr/local/kafka-eagle-bin-3.0.1/efak-web-3.0.1
export PATH=$KE_HOME/BIN:$PATH
source /etc/profile
到kafka安装目录的bin文件夹下执行命令:
./zookeeper-server-start.sh ../config/zookeeper.properties &
到kafka安装目录的bin文件夹下执行命令:
./kafka-server-start.sh ../config/server.properties &
./ke.sh start