1.启动zookeeper

 nohup bin/zookeeper-server-start.sh config/zookeeper.properties > zookeeper_nohup.log 2>&1 &

  

2.启动kafka -server

nohup bin/kafka-server-start.sh config/server.properties > kafka_server_nohup.log 2>&1 &

  

3.启动kafka的生产者(可换成其他生产者)

nohup bin/kafka-console-producer.sh-broker-list 192.168.0.99:9092 --topic test  > producer_nohup.log 2>&1 &

  

4.启动kafka的消费者(可换成其他消费者)

bin/kafka-console-consumer.sh --zookeeper 192.168.0.99:2181 --topic test --from-beginning > consumer_nohup.log 2>&1 &

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-03
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2021-10-22
  • 2021-04-25
猜你喜欢
  • 2022-02-14
  • 2021-12-06
  • 2021-10-02
  • 2021-05-15
  • 2021-09-24
  • 2021-04-30
  • 2021-06-30
相关资源
相似解决方案