CentOS安装Kafka

cd /opt
wget http://apache.website-solution.net/kafka/2.1.1/kafka_2.12-2.1.1.tgz
tar -zxvf kafka_2.12-2.1.1.tgz
cd kafka_2.12-2.1.1/bin
./kafka-server-start.sh ../config/server.properties
后台启动
./kafka-server-start.sh -daemon ../config/server.properties

修改配置文件
server.properties
listeners=PLAINTEXT://192.168.99.214:9092
log.dirs=/home/kafka/logs
num.partitions=10
log.retention.hours=24
zookeeper.connect=192.168.99.201:2181
delete.topic.enable=true

上一篇:CF1633D Make Them Equal 题解


下一篇:[RubyOnRails]一些网址