简易卡夫卡消息服务器搭建

  

分布式消息服务器卡夫卡

  

# #搭建过程:
步骤:
1:下载代码,解压
2:启动动物园管理员服务器:bin/zookeeper-server-start。sh配置/zookeeper.properties
3:启动卡夫卡服务器:bin/kafka-server-start。sh配置/server.properties
4:创建一个主题:bin/kafka-topics。sh——创建管理员localhost: 2181 - replication因子设置分区1——1——主题mytopic
查看是否创建成功:bin/kafka-topics。sh——列表管理员localhost: 2181
5:发送消息:bin/kafka-console-producer。sh——券商名单上localhost: 9092——主题mytopic
6:启动一个消费者:bin/kafka-console-consumer。sh - bootstrap-server localhost: 9092——主题mytopic from-begining

简易卡夫卡消息服务器搭建