标签:pac mon rop keep res ace margin begin src
开启zookeeper
bin/zookeeper-server-start.sh -daemon config/zookeeper.properties
查看jps进程
jps
启动kafka
bin/kafka-server-start.sh config/server.properties
创建topic
bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic fly_ad_test
查看topic list列表
bin/kafka-topics.sh --list --zookeeper localhost:2181
启动producer
bin/kafka-console-producer.sh --broker-list localhost:9092 --topic fly_ad_test
启动consumer
bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic fly_ad_test --from-beginning
标签:pac mon rop keep res ace margin begin src
原文地址:https://www.cnblogs.com/flyyu1/p/10990414.html