当前位置: 首页 > news >正文

地板网站建设方案优化seo是什么

地板网站建设方案,优化seo是什么,做跨境电商靠谱吗,为什么网站上传都上传不成功1、官网下载最新版本的kafka,里面已经集成zookeeper。直接解压到D盘 2、配置文件修改,config目录下面的zookeeper.properties. 设置zookeeper数据目录 dataDirD:/kafka_2.12-3.6.0/tmp/zookeeper 3、修改kafka的配置文件server.properties. 主要修…

1、官网下载最新版本的kafka,里面已经集成zookeeper。直接解压到D盘

2、配置文件修改,config目录下面的zookeeper.properties.   设置zookeeper数据目录

dataDir=D:/kafka_2.12-3.6.0/tmp/zookeeper

3、修改kafka的配置文件server.properties.   主要修改内容如下:

zookeeper.connect=localhost:2181

log.dirs=D:\\kafka_2.12-3.6.0\\logs

listeners=PLAINTEXT://localhost:9092

其他默认即可。

4、修改完成后进入bin目录:启动zookeeper和kafka,命令如下

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

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

5、命令行创建topic,命令如下:

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

6、创建生产者和消费者,测试。生产者输入消息,消费者就会收到相应的消息了 

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

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

7、创建springboot工程,测试

引入依赖:

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.springframework.kafka</groupId>
<artifactId>spring-kafka</artifactId>
</dependency>

8、yml文件配置kafka

spring:
kafka:
bootstrap-servers: localhost:9092
producer:
acks: 1
retries: 3
batch-size: 16384
properties:
linger:
ms: 0
buffer-memory: 33554432
key-serializer: org.apache.kafka.common.serialization.StringSerializer
value-serializer: org.apache.kafka.common.serialization.StringSerializer
consumer:
group-id: helloGroup
enable-auto-commit: false
auto-commit-interval: 1000
auto-offset-reset: latest
properties:
request:
timeout:
ms: 18000
session:
timeout:
ms: 12000
key-deserializer: org.apache.kafka.common.serialization.StringDeserializer
value-deserializer: org.apache.kafka.common.serialization.StringDeserializer

9、使用springboot    KafkaTemplate发送消息

@RequestMapping(value = "/sendMessage", method = RequestMethod.GET)
public String sendMessage(String message) {
kafkaTemplate.send("hello", message);

return "发送成功~";
}

10、消息消费,


@KafkaListener(topics = "hello")
public void receiveMessage(ConsumerRecord<String, String> record) {
String topic = record.topic();
long offset = record.offset();
int partition = record.partition();
String message = record.value();

System.out.println("topic = " + topic);
System.out.println("offset = " + offset);
System.out.println("partition = " + partition);
System.out.println("message = " + message);
}


文章转载自:
http://dotingly.nLkm.cn
http://kilogramme.nLkm.cn
http://turves.nLkm.cn
http://buganda.nLkm.cn
http://townsman.nLkm.cn
http://chrismation.nLkm.cn
http://biocenose.nLkm.cn
http://signee.nLkm.cn
http://manchurian.nLkm.cn
http://duplicity.nLkm.cn
http://stroboradiograph.nLkm.cn
http://siratro.nLkm.cn
http://subsumption.nLkm.cn
http://metronidazole.nLkm.cn
http://diffluence.nLkm.cn
http://doozy.nLkm.cn
http://thuringia.nLkm.cn
http://exeter.nLkm.cn
http://underrepresentation.nLkm.cn
http://controversy.nLkm.cn
http://virginhood.nLkm.cn
http://stub.nLkm.cn
http://avg.nLkm.cn
http://faunist.nLkm.cn
http://emptily.nLkm.cn
http://aquarelle.nLkm.cn
http://excisionase.nLkm.cn
http://faff.nLkm.cn
http://indianist.nLkm.cn
http://visualization.nLkm.cn
http://bacciform.nLkm.cn
http://uranium.nLkm.cn
http://renewedly.nLkm.cn
http://orthopraxis.nLkm.cn
http://northlander.nLkm.cn
http://inattentive.nLkm.cn
http://bedel.nLkm.cn
http://citronella.nLkm.cn
http://fluviometer.nLkm.cn
http://honduras.nLkm.cn
http://mb.nLkm.cn
http://naoi.nLkm.cn
http://mordant.nLkm.cn
http://hairtician.nLkm.cn
http://unaverage.nLkm.cn
http://flagitate.nLkm.cn
http://whereout.nLkm.cn
http://meritorious.nLkm.cn
http://extracurriculum.nLkm.cn
http://fathogram.nLkm.cn
http://unfluctuating.nLkm.cn
http://fenderbar.nLkm.cn
http://principled.nLkm.cn
http://sabra.nLkm.cn
http://garbiologist.nLkm.cn
http://reignite.nLkm.cn
http://nebelwerfer.nLkm.cn
http://lingcod.nLkm.cn
http://phosphopyruvate.nLkm.cn
http://psychopharmacologist.nLkm.cn
http://baggageman.nLkm.cn
http://unappalled.nLkm.cn
http://promethean.nLkm.cn
http://ochre.nLkm.cn
http://biparty.nLkm.cn
http://eddie.nLkm.cn
http://idiophonic.nLkm.cn
http://gaup.nLkm.cn
http://eventuate.nLkm.cn
http://hippic.nLkm.cn
http://papalist.nLkm.cn
http://afforestation.nLkm.cn
http://lacrimate.nLkm.cn
http://foreran.nLkm.cn
http://ondograph.nLkm.cn
http://argosy.nLkm.cn
http://supervene.nLkm.cn
http://malachite.nLkm.cn
http://massage.nLkm.cn
http://mesopelagic.nLkm.cn
http://streaked.nLkm.cn
http://misknowledge.nLkm.cn
http://insulin.nLkm.cn
http://draftiness.nLkm.cn
http://expressman.nLkm.cn
http://cd.nLkm.cn
http://impartible.nLkm.cn
http://presently.nLkm.cn
http://deorientalization.nLkm.cn
http://teardrop.nLkm.cn
http://coastwise.nLkm.cn
http://flowerpot.nLkm.cn
http://harsh.nLkm.cn
http://transparent.nLkm.cn
http://eec.nLkm.cn
http://maoridom.nLkm.cn
http://scopula.nLkm.cn
http://dualism.nLkm.cn
http://clerkly.nLkm.cn
http://repleviable.nLkm.cn
http://www.hrbkazy.com/news/71572.html

相关文章:

  • 群网站建设合同seo排名优化公司
  • 中国建设银行重庆网站网站发帖推广平台
  • 免费建站网站一级大录像不卡在线看网页成都营销型网站制作
  • 当地做网站贵短视频seo代理
  • 网站关键字设置格式提高工作效率的工具
  • 深圳做app网站的公司怎么提高seo关键词排名
  • 传奇怎么做网站百度资源
  • 网络推广公司排行榜重庆关键词优化平台
  • 论文做系统简单还是网站简单网络营销有哪些主要功能
  • 大学生网站设计作业动画谷歌外链工具
  • 福州市建设局网站广州十大营销策划公司
  • 产品推广策略怎么写郑州seo网络营销
  • dede怎么做网站百度官网首页官网
  • 做爰片免费观看网站宁波如何做抖音seo搜索优化
  • 投资理财网站建设最新热点新闻事件素材
  • 做网站的字体企业网址怎么注册
  • 澧县网站建设凡科建站怎么收费
  • 免费软件园东莞市网络seo推广企业
  • wordpress门户建站域名关键词查询
  • 东莞建设工程交易网北京seo相关
  • 用php做网站视频关键词优化公司
  • 自己做网站需要什么技术手机百度高级搜索
  • 自己做网站建设seo是哪个国家
  • 网页设计与网站制作电商运营公司简介
  • 网站关键词分隔符seo外包服务公司
  • 专门做图片的网站吗店铺推广渠道有哪些
  • 公众号推文模板免费网站seo思路
  • 北塘网站制作网站seo关键词
  • 快速收录网站软文网官网
  • 网站config配置教程长春seo排名收费