Getting Started Series 2-kafka kafka installation

Copyright: https://blog.csdn.net/xichengqc/article/details/90315974

Related installation file locations:
link: https://pan.baidu.com/s/1md2w6GJiXzsUKzBXJmJNBA
extraction code: 1dj7

  1. Upload kafka package to install Linux and unzip
  2. Enter config configuration file directory on server.properties
broker.id=0 #集群中要保证每个id不一样
log.dirs=/home/software/kafka/kafka-logs
zookeeper.connect=192.168.133.131:2181
  1. Go to the bin directory to start kafka
sh kafka-server-start.sh ../config/server.properties
  1. Verify kafka installation & startup success (here we enter the virtual machine is 192168.133.131)
[root@localhost bin]# sh zkCli.sh
[zk: localhost:2181(CONNECTED) 4] ls /brokers/ids
[0]

Guess you like

Origin blog.csdn.net/xichengqc/article/details/90315974