Coder Social home page Coder Social logo

community's Introduction

community

基于springboot的论坛项目

kafka启动命令:

存放路径(看自己情况)

E:\javaweb\work\kafka_2.12-2.8.0

windows运行路径(看自己的情况)

E:\javaweb\work\kafka_2.12-2.8.0\bin\windows

启动服务器 (先启动zookeeper服务器,再启动kafka) !!!千万不要手动暴力关闭,用下面的命令关闭

bin\windows\zookeeper-server-start.bat config\zookeeper.properties bin\windows\kafka-server-start.bat config\server.properties

创建主题

kafka-topics.bat --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic test

查看当前服务器的主题

kafka-topics.bat --list --bootstrap-server localhost:9092

创建生产者,往指定主题上发消息

kafka-console-producer.bat --broker-list localhost:9092 --topic test

消费者

kafka-console-consumer.bat --bootstrap-server localhost:9092 --topic test --from-beginning

关闭zookeeper服务器

zookeeper-server-stop.bat

关闭kafka服务器

kafka-server-stop.bat

#命令备忘

kafka

进入kafka主目录

cd D:\develop\kafka_2.12-2.3.0\bin\windows

根据配置文件启动zookeeper

.\zookeeper-server-start.bat config\zookeeper.properties

根据配置文件启动kafka

.\kafka-server-start.bat config\server.properties

Elasticsearch

进入Elasticsearch主目录

cd D:\develop\elasticsearch-6.4.3\bin

启动Elasticsearch

.\elasticsearch.bat

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.