Compare the two. In addition, when checking Kafka messages, logs are constantly displayed. I don’t know how to close them. There are children’s shoes that can be pointed out
Be sure to start zookeeper first and then Kafka. The sequence cannot be changed.
Close Kafka first and then zookeeper.
Execute on three machines: zkserver.sh start
Check zookeeper status: zkserver.sh status
Close: zkserver.sh stop
(note that this command must be executed under Kafka’s installation home directory)
Execute the following commands on each of the three machines:
bin/kafka-server-start.sh ../config/server.properties &
Close: bin / kafka-server-stop.sh