赞
踩
提示:以下是本篇文章正文内容,下面案例可供参考
1.https://kafka.apache.org/downloads下载
2.使用Xftp将压缩包上传至Linux root目录下
压缩包解压至 opt目录下,并重命名方便后续操作
代码如下(示例):
[root@localhost ~]# ls
anaconda-ks.cfg jdk-8u131-linux-x64.tar.gz kafka_2.12-2.2.0.tgz zookeeper-3.4.6.tar.gz
[root@localhost ~]# tar zxvf kafka_2.12-2.2.0.tgz -C /opt
kafka_2.12-2.2.0/
kafka_2.12-2.2.0/LICENSE
kafka_2.12-2.2.0/NOTICE
然后重命名
[root@localhost ~]# cd /opt
[root@localhost opt]# ls
kafka_2.12-2.2.0
[root@localhost opt]# mv kafka_2.12-2.2.0/ kafka
[root@localhost opt]# ls
kafka
[root@localhost opt]#
然后修改config目录下的server.properties文件
[root@localhost kafka]# ls
bin config kafkaStart.sh libs LICENSE log logs NOTICE site-docs zookeeper
[root@localhost kafka]# cd config/
[root@localhost config]# ls
config connect-console-source.properties connect-file-sink.properties connect-log4j.properties consumer.properties producer.properties too
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。