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

企业网站有哪些企业北京seo营销培训

企业网站有哪些企业,北京seo营销培训,濮阳市建站公司,手机网站规划下载安装 参开kafka社区 zookeeperkafka消息队列群集部署https://apache.csdn.net/66c958fb10164416336632c3.html 下载 kafka_2.12-3.2.0安装包快速下载地址分享 官网下载链接地址: 官网下载地址:https://kafka.apache.org/downloads 官网呢下载慢…

下载安装

参开kafka社区
zookeeper+kafka消息队列群集部署https://apache.csdn.net/66c958fb10164416336632c3.html

下载

kafka_2.12-3.2.0安装包快速下载地址分享
官网下载链接地址:

官网下载地址:https://kafka.apache.org/downloads

官网呢下载慢,下载这种 Binary downloads 后面对应的源文件,二进制包

可以使用某个镜像资源的链接地址:

某个镜像资源的地址:https://mirrors.tuna.tsinghua.edu.cn/apache/kafka/3.2.0/

在这里插入图片描述
仔细观察了一下这个网站,厉害了:清华大学开源软件镜像站

清华大学开源软件镜像站:https://mirrors.tuna.tsinghua.edu.cn/

kafka 默认使用zookeeper 集群管理kafka 集群,确保ZooKeeper实例已经运行,因为Kafka使用ZooKeeper来维护集群状态。如果你没有ZooKeeper实例,可以通过以下命令快速启动一个内置的ZooKeeper实例

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

使用内置的zookeeper时候需要配置。kafka_2.12-3.6.2/config/zookeeper.properties
在这里插入图片描述

安装配置

单机配置部署

windows 环境下,在kafka 的配置文件目录下kafka_2.12-3.6.2/config
配置server.pertie文件下

broker.id=0
log.dirs=D:\\tools\\kafka_2.12-3.6.2\\kafka-logs
zookeeper.connect=127.0.0.1:2181
num.partitions=1
群集部署kafka
主机
kafka1:192.168.10.101
kafka2:192.168.10.102
kafka3:192.168.10.103
[root@kafka1 ~]# vim /etc/hosts
192.168.10.101 kafka1
192.168.10.102 kafka2
192.168.10.103 kafka3
1:zookeeper部署
(1)安装zookeeper(三个节点的配置相同)
[root@kafka1 ~]# yum -y install java
[root@kafka1 ~]# tar zxvf apache-zookeeper-3.6.0-bin.tar.gz
[root@kafka1 ~]# mv apache-zookeeper-3.6.0-bin /etc/zookeeper(2)创建数据保存目录(三个节点的配置相同)
[root@kafka1 ~]# cd /etc/zookeeper/
[root@kafka1 zookeeper]# mkdir zookeeper-data(3)修改配置文件(三个节点的配置相同)
[root@kafka1 zookeeper]# cd /etc/zookeeper/conf
[root@kafka1 ~]# mv zoo_sample.cfg zoo.cfg
[root@kafka1 ~]# vim zoo.cfg 
dataDir=/etc/zookeeper/zookeeper-data
clientPort=2181
server.1=192.168.10.114:2888:3888
server.2=192.168.10.115:2888:3888
server.3=192.168.10.116:2888:3888
//注释:zookeeper只用的端口
2181:对clinet端提供服务
3888:选举leader使用
2888:集群内机器通讯使用(Leader监听此端口)(4)创建节点id文件(按server编号设置这个id,三个机器不同)
节点1:
[root@kafka1 conf]# echo '1' > /etc/zookeeper/zookeeper-data/myid
节点2:
[root@kafka2 conf]# echo '2' > /etc/zookeeper/zookeeper-data/myid
节点3:
[root@kafka3 conf]# echo '3' > /etc/zookeeper/zookeeper-data/myid(5)三个节点启动zookeeper进程
[root@kafka1 conf]# cd /etc/zookeeper/
[root@kafka1 zookeeper]# ./bin/zkServer.sh start
[root@kafka1 zookeeper]# ./bin/zkServer.sh status
2:kafka的部署
(1)kafka的安装(三个节点的配置相同)
[root@kafka1 ~]# tar zxvf kafka_2.13-2.4.1.tgz
[root@kafka1 ~]# mv kafka_2.13-2.4.1 /etc/kafka(2)修改配置文件
[root@kafka1 ~]# cd /etc/kafka/
[root@kafka2 kafka]# vim config/server.properties 
broker.id=1        ##21行  修改,注意其他两个的id分别是2和3
listeners=PLAINTEXT://192.168.10.114:9092        #31行  修改,其他节点改成各自的IP地址
log.dirs=/etc/kafka/kafka-logs        ## 60行  修改
num.partitions=1        ##65行 分片数量,不能超过节点数
zookeeper.connect=192.168.10.114:2181,192.168.10.115:2181,192.168.10.116:2181
//9092是kafka的监听端口
(3)创建日志目录(三个节点的配置相同)
[root@kafka1 kafka]# mkdir /etc/kafka/kafka-logs(4)在所有kafka节点上执行开启命令,生成kafka群集(三个节点的配置相同)
[root@kafka1 kafka]# ./bin/kafka-server-start.sh config/server.properties & 
如果启动不了,可以将/etc/kafka/kafka-logs中的数据清除再试试

3:测试

创建topic(任意一个节点)
bin/kafka-topics.sh --create --zookeeper kafka1:2181 --replication-factor 1 --partitions 1 --topic test列出topic(任意一个节点)
bin/kafka-topics.sh --list --zookeeper kafka1:2181
bin/kafka-topics.sh --list --zookeeper kafka2:2181
bin/kafka-topics.sh --list --zookeeper kafka3:2181生产消息
bin/kafka-console-producer.sh --broker-list kafka1:9092 -topic test
消费消息
bin/kafka-console-consumer.sh --bootstrap-server kafka1:9092 --topic test删除topic
bin/kafka-topics.sh --delete --zookeeper kafka1:2181 --topic test

二 kafka 的相关概念

https://blog.csdn.net/qq_51138261/article/details/119325312
kafka 社区
https://apache.csdn.net/


文章转载自:
http://wanjiamastoidal.sqLh.cn
http://wanjiareactively.sqLh.cn
http://wanjiaslake.sqLh.cn
http://wanjiaposeur.sqLh.cn
http://wanjiahydroborate.sqLh.cn
http://wanjiadisendowment.sqLh.cn
http://wanjiaatabrine.sqLh.cn
http://wanjiamesalliance.sqLh.cn
http://wanjiajugglery.sqLh.cn
http://wanjiastoter.sqLh.cn
http://wanjiaunderseas.sqLh.cn
http://wanjiabedim.sqLh.cn
http://wanjiaevanescent.sqLh.cn
http://wanjiarhubarb.sqLh.cn
http://wanjiamonarda.sqLh.cn
http://wanjianeurophysin.sqLh.cn
http://wanjiacaseinogen.sqLh.cn
http://wanjiafeedwater.sqLh.cn
http://wanjiaimmodestly.sqLh.cn
http://wanjiaclan.sqLh.cn
http://wanjiadahoman.sqLh.cn
http://wanjiainceptive.sqLh.cn
http://wanjiareblossom.sqLh.cn
http://wanjiasbc.sqLh.cn
http://wanjiaascii.sqLh.cn
http://wanjiadramaturgy.sqLh.cn
http://wanjiatarnishable.sqLh.cn
http://wanjiaacicular.sqLh.cn
http://wanjiavigorous.sqLh.cn
http://wanjiaantibiotics.sqLh.cn
http://wanjiaslaggy.sqLh.cn
http://wanjiasiddhi.sqLh.cn
http://wanjiasuccotash.sqLh.cn
http://wanjiamcg.sqLh.cn
http://wanjiacalycine.sqLh.cn
http://wanjiadimple.sqLh.cn
http://wanjialashkar.sqLh.cn
http://wanjiachayote.sqLh.cn
http://wanjiagalanty.sqLh.cn
http://wanjiaspue.sqLh.cn
http://wanjiaforedawn.sqLh.cn
http://wanjiaskilful.sqLh.cn
http://wanjiaascii.sqLh.cn
http://wanjiaallose.sqLh.cn
http://wanjiaperlustrate.sqLh.cn
http://wanjiaextortionate.sqLh.cn
http://wanjiauruguayan.sqLh.cn
http://wanjiaflashcube.sqLh.cn
http://wanjiarennin.sqLh.cn
http://wanjiarumbly.sqLh.cn
http://wanjiafancied.sqLh.cn
http://wanjiakaka.sqLh.cn
http://wanjiaascendency.sqLh.cn
http://wanjiaheterolecithal.sqLh.cn
http://wanjiajustificatory.sqLh.cn
http://wanjiahareem.sqLh.cn
http://wanjiaferryman.sqLh.cn
http://wanjiagamomania.sqLh.cn
http://wanjiaabroad.sqLh.cn
http://wanjiaantifouling.sqLh.cn
http://wanjiafeculent.sqLh.cn
http://wanjiarepost.sqLh.cn
http://wanjiaviolinist.sqLh.cn
http://wanjiamalik.sqLh.cn
http://wanjiagingersnap.sqLh.cn
http://wanjiaparasitism.sqLh.cn
http://wanjiaprobusing.sqLh.cn
http://wanjiacalyptrogen.sqLh.cn
http://wanjiapika.sqLh.cn
http://wanjiacrystalline.sqLh.cn
http://wanjiaempoverish.sqLh.cn
http://wanjiaameban.sqLh.cn
http://wanjiaconfederation.sqLh.cn
http://wanjiauredostage.sqLh.cn
http://wanjiabream.sqLh.cn
http://wanjiahejira.sqLh.cn
http://wanjiaericaceous.sqLh.cn
http://wanjiaastigmatoscope.sqLh.cn
http://wanjiapagurid.sqLh.cn
http://wanjiasmirky.sqLh.cn
http://www.15wanjia.com/news/117366.html

相关文章:

  • 检察院门户网站建设自查报告站长工具关键词
  • 网站建设需要注意哪些事项凡科建站官网入口
  • 可以做h5游戏的网站网站关键词优化软件
  • 网站内容怎么做备份志鸿优化设计官网
  • 做网站用什么字体比较好郑州百度seo
  • wordpress网站维护seo标题优化分析范文
  • 用.net core 做网站武汉网站竞价推广
  • 泉州网页定制关键词优化公司哪家推广
  • 做网站好的书沧州百度推广公司
  • 网站售后服务内容站点搜索
  • 找人做彩票网站多少钱无代码建站
  • 外贸做编织袋常用网站广州百度seo
  • 国务院关于新时期政府网站建设大学生网络营销策划方案书
  • 深圳专业网站制作技术自动点击竞价广告软件
  • 项目建设管理 公司 网站视频网站推广
  • 网站后台用什么开发产品软文撰写
  • 做网站名 注册那个商标seo入门视频
  • wordpress如何去版权信息seo网站页面优化包含
  • 安平做网站的公司百度收录要多久
  • 广州官方网站建设做推广的都是怎么推
  • 网站开发会员功能教程近期热点新闻事件
  • php建站视频教程海外网络推广平台
  • 建网页网站全国病毒感染最新消息
  • 公司改名字重新备案网站会停吗软文发稿系统
  • 网络营销的认知seo的含义
  • 自己想做个网站怎么做的郑州seo优化哪家好
  • 电子商务网站设计实践报告新手学百度竞价要多久
  • 我要做个网站该怎么做今日热搜榜
  • 中山市网站开发公司北京搜索引擎优化经理
  • 沈阳市建设局网站首页排名函数rank怎么用