后台启动:bin/kafka-server-start.sh config/server.properties > /dev/null 2>&1 &

启动生产者:bin/kafka-console-producer.sh --broker-list localhost:9092 --topic data

启动消费者:bin/kafka-console-consumer.sh --bootstrap-server localhost:2181 --from-beginning --topic data

创建topic:./bin/kafka-topics.sh --zookeeper localhost:2181 --create --topic data --partitions 1 --replication-factor 1

相关文章:

  • 2021-11-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-07
  • 2021-12-14
  • 2021-07-07
  • 2021-12-23
  • 2021-05-27
  • 2021-03-31
相关资源
相似解决方案