# kafka **Repository Path**: zhanglibin/kafka ## Basic Information - **Project Name**: kafka - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-04-22 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # kafka #### 启动步骤 1. 启动zookeeper 切换到kafka目录 ``` ./bin/zookeeper-server-start.sh ./config/zookeeper.properties ``` 2. 启动kafka ``` ./bin/kafka-server-start.sh ./config/server.properties ``` 3.启动生产者 ``` ./bin/kafka-console-producer.sh --broker-list 172.30.10.2:9092 --topic test ``` 4.启动消费者 ``` ./bin/kafka-console-consumer.sh --bootstrap-server 172.30.10.2:9092 --topic test --from-beginning ``` #### 修改配置文件server.properties ``` listeners=PLAINTEXT://172.30.10.2:9092 ```