zoukankan      html  css  js  c++  java
  • kafka部署

    1.启动zookeeper

    kafka依赖于zookeeper,需要先启动zookeeper。

    进入kafka解压目录后,

    linux:

    ./bin/zookeeper-server-start.sh ./config/zookeeper.properties

    windows:

    .inwindowszookeeper-server-start.bat .configzookeeper.properties

    2. 启动kafka

    Linux:

    ./bin/kafka-server-start.sh ./config/server.properties

    windows:

    .inwindowskafka-server-start.bat .configserver.properties

    3.创建主题

    Linux:

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

    windows:

    .inwindowskafka-topics.bat --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic topic_name

    4.查看主题列表

    Linux:

    ./bin/kafka-topics.sh --list --zookeeper localhost:2181

    windows:

    .inwindowskafka-topics.bat --list --zookeeper localhost:2181

    更完善的参考博客:https://blog.csdn.net/puhanjie/article/details/106498803


  • 相关阅读:
    ②.kubernetes service
    c2p
    ⑤.docker dockerfile
    ④.docker volume
    ②.docker image
    ③.docker container
    ①.docker介绍
    三剑客之grep
    ⑦.shell 数组
    shell 正则
  • 原文地址:https://www.cnblogs.com/betterwgo/p/14682036.html
Copyright © 2011-2022 走看看