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

山西网站建设软件有哪些可以免费推广的平台

山西网站建设软件,有哪些可以免费推广的平台,企业网站应该怎么做,品牌vi设计内容目录 Zookeeper1 启动单个Zookeeper实例1.1 下载Zookeeper安装包并解压1.2 添加环境变量1.3 修改默认配置1.4 新建数据存储目录和日志目录1.5 启动Zookeeper1.6 停止Zookeeper 2 搭建Zookeeper集群2.1 新建集群目录2.2 配置环境变量2.3 创建节点目录2.4 修改配置2.5 创建节点ID…

目录

  • Zookeeper
    • 1 启动单个Zookeeper实例
      • 1.1 下载Zookeeper安装包并解压
      • 1.2 添加环境变量
      • 1.3 修改默认配置
      • 1.4 新建数据存储目录和日志目录
      • 1.5 启动Zookeeper
      • 1.6 停止Zookeeper
    • 2 搭建Zookeeper集群
      • 2.1 新建集群目录
      • 2.2 配置环境变量
      • 2.3 创建节点目录
      • 2.4 修改配置
      • 2.5 创建节点ID文件
      • 2.6 启动集群
      • 2.7 停止集群

Zookeeper

本文尝试在单机搭建包含有3个节点的Zookeeper集群。
环境:Windows 11 WSL2
Linux发行版本:Ubuntu 22.04.2 LTS

1 启动单个Zookeeper实例

1.1 下载Zookeeper安装包并解压

wget https://dlcdn.apache.org/zookeeper/zookeeper-3.8.3/apache-zookeeper-3.8.3-bin.tar.gz
sudo tar xvf apache-zookeeper-3.8.3-bin.tar.gz -C /usr/local/bin

1.2 添加环境变量

配置环境变量:

vim ~/.bashrc

添加如下内容:

#set Zookeeper env vars
export ZOOKEEPER_HOME=/usr/local/bin/apache-zookeeper-3.8.3-bin
export PATH=$PATH:$ZOOKEEPER_HOME/bin

加载新的环境变量:

source ~/.bashrc

1.3 修改默认配置

cd $ZOOKEEPER_HOME/conf
cp zoo_sample.cfg zoo.cfg
vim zoo.cfg

在配置文件中修改数据存储目录:

dataDir=$ZOOKEEPER_HOME/data

1.4 新建数据存储目录和日志目录

sudo mkdir $ZOOKEEPER_HOME/data
sudo chmod -R 777 data
sudo mkdir $ZOOKEEPER_HOME/logs
sudo chmod -R 777 logs

1.5 启动Zookeeper

zkServer.sh start

查看状态:

zkServer.sh status

启动命令行:

zkCli.sh

1.6 停止Zookeeper

停止Zookeeper

zkServer.sh stop

2 搭建Zookeeper集群

2.1 新建集群目录

cd /usr/local/bin
sudo zookeeper-cluster
chmod -R 777 zookeeper-cluster

2.2 配置环境变量

vim ~/.bashrc
export ZK_CLUSTER_HOME /usr/local/bin/zookeeper-cluster
source ~/.bashrc

2.3 创建节点目录

将Zookeeper安装目录复制3份:

cp -r apache-zookeeper-3.8.3-bin zookeeper-cluster/zookeeper-1
cp -r apache-zookeeper-3.8.3-bin zookeeper-cluster/zookeeper-2
cp -r apache-zookeeper-3.8.3-bin zookeeper-cluster/zookeeper-3

清理之前单实例产生的数据:

sudo rm -rf zookeeper-cluster/zookeeper-1/data
sudo rm -rf zookeeper-cluster/zookeeper-2/data
sudo rm -rf zookeeper-cluster/zookeeper-3/datasudo mkdir zookeeper-cluster/zookeeper-1/data
sudo mkdir zookeeper-cluster/zookeeper-2/data
sudo mkdir zookeeper-cluster/zookeeper-3/data

如果当前账号没有写权限,需要赋权限:

sudo chmod -R 777 zookeeper-cluster/zookeeper-1
sudo chmod -R 777 zookeeper-cluster/zookeeper-2
sudo chmod -R 777 zookeeper-cluster/zookeeper-3

2.4 修改配置

首先查询本机IP

ip addr

分别修改3个节点的配置

vim zookeeper-cluster/zookeeper-1/conf/zoo.cfg

dataDir=$ZK_CLUSTER_HOME/zookeeper-1/data
clientPort=2181
#Cluster
server.1=172.26.143.96:2881:3881
server.2=172.26.143.96:2882:3882
server.3=172.26.143.96:2883:3883

vim zookeeper-cluster/zookeeper-2/conf/zoo.cfg

dataDir=$ZK_CLUSTER_HOME/zookeeper-2/data
clientPort=2182
#Cluster
server.1=172.26.143.96:2881:3881
server.2=172.26.143.96:2882:3882
server.3=172.26.143.96:2883:3883

vim zookeeper-cluster/zookeeper-3/conf/zoo.cfg

dataDir=$ZK_CLUSTER_HOME/zookeeper-3/data
clientPort=2183
#Cluster
server.1=172.26.143.96:2881:3881
server.2=172.26.143.96:2882:3882
server.3=172.26.143.96:2883:3883

2.5 创建节点ID文件

echo 1 > zookeeper-cluster/zookeeper-1/data/myid
echo 2 > zookeeper-cluster/zookeeper-2/data/myid
echo 3 > zookeeper-cluster/zookeeper-3/data/myid

2.6 启动集群

分别启动三个Zookeeper实例:

$ZK_CLUSTER_HOME/zookeeper-1/bin/zkServer.sh start
$ZK_CLUSTER_HOME/zookeeper-2/bin/zkServer.sh start
$ZK_CLUSTER_HOME/zookeeper-3/bin/zkServer.sh start

查看节点状态:

ZK_CLUSTER_HOME/zookeeper-1/bin/zkServer.sh status

ZooKeeper JMX enabled by default
Using config: /usr/local/bin/zookeeper-cluster/zookeeper-1/bin/…/conf/zoo.cfg
Client port found: 2181. Client address: localhost. Client SSL: false.
Mode: follower

ZK_CLUSTER_HOME/zookeeper-2/bin/zkServer.sh status

ZooKeeper JMX enabled by default
Using config: /usr/local/bin/zookeeper-cluster/zookeeper-2/bin/…/conf/zoo.cfg
Client port found: 2182. Client address: localhost. Client SSL: false.
Mode: leader

ZK_CLUSTER_HOME/zookeeper-3/bin/zkServer.sh status

ZooKeeper JMX enabled by default
Using config: /usr/local/bin/zookeeper-cluster/zookeeper-3/bin/…/conf/zoo.cfg
Client port found: 2183. Client address: localhost. Client SSL: false.
Mode: follower

2.7 停止集群

$ZK_CLUSTER_HOME/zookeeper-1/bin/zkServer.sh stop
$ZK_CLUSTER_HOME/zookeeper-2/bin/zkServer.sh stop
$ZK_CLUSTER_HOME/zookeeper-3/bin/zkServer.sh stop

文章转载自:
http://dinncoenclose.tpps.cn
http://dinncodivinity.tpps.cn
http://dinncoacidifier.tpps.cn
http://dinncotuberculosis.tpps.cn
http://dinncochlorinity.tpps.cn
http://dinncohydrographer.tpps.cn
http://dinncopatchouly.tpps.cn
http://dinncodangly.tpps.cn
http://dinncoprovisional.tpps.cn
http://dinncounutterably.tpps.cn
http://dinncofeudalize.tpps.cn
http://dinncopupate.tpps.cn
http://dinncotush.tpps.cn
http://dinncotensility.tpps.cn
http://dinncobuttery.tpps.cn
http://dinncohandspring.tpps.cn
http://dinncokennan.tpps.cn
http://dinncoaeroelasticity.tpps.cn
http://dinncoviscoelastic.tpps.cn
http://dinncointermissive.tpps.cn
http://dinncomicropulsation.tpps.cn
http://dinncobabelize.tpps.cn
http://dinncovilely.tpps.cn
http://dinncocentrical.tpps.cn
http://dinncodisburse.tpps.cn
http://dinncofisheater.tpps.cn
http://dinncocleavable.tpps.cn
http://dinncobarostat.tpps.cn
http://dinncosagaciously.tpps.cn
http://dinncorecalculate.tpps.cn
http://dinncoforgeability.tpps.cn
http://dinncomonthlong.tpps.cn
http://dinncocentripetence.tpps.cn
http://dinncocestoid.tpps.cn
http://dinncodetriment.tpps.cn
http://dinncohydrosulphide.tpps.cn
http://dinncofatherly.tpps.cn
http://dinncoinopportune.tpps.cn
http://dinncolandeshauptmann.tpps.cn
http://dinncolcm.tpps.cn
http://dinncoincalculability.tpps.cn
http://dinncochalkrail.tpps.cn
http://dinncoparametrize.tpps.cn
http://dinncorecruiter.tpps.cn
http://dinncounche.tpps.cn
http://dinncobacchanalian.tpps.cn
http://dinncomfa.tpps.cn
http://dinncolatheman.tpps.cn
http://dinncoguanine.tpps.cn
http://dinncounsigned.tpps.cn
http://dinncodaimon.tpps.cn
http://dinnconarcocatharsis.tpps.cn
http://dinncomacumba.tpps.cn
http://dinncostrong.tpps.cn
http://dinncopiccata.tpps.cn
http://dinncodaoism.tpps.cn
http://dinncoendosymbiosis.tpps.cn
http://dinncowirehaired.tpps.cn
http://dinncogrammaticus.tpps.cn
http://dinncomayan.tpps.cn
http://dinncosemirevolution.tpps.cn
http://dinncopulpiteer.tpps.cn
http://dinncoevadingly.tpps.cn
http://dinncosymbionese.tpps.cn
http://dinncononsupport.tpps.cn
http://dinncoxenogenesis.tpps.cn
http://dinncoplp.tpps.cn
http://dinncoforevermore.tpps.cn
http://dinncojitteriness.tpps.cn
http://dinncopantoscopic.tpps.cn
http://dinncogownsman.tpps.cn
http://dinncoprimitive.tpps.cn
http://dinncobastardize.tpps.cn
http://dinncothawless.tpps.cn
http://dinncoarapaima.tpps.cn
http://dinncoperuvian.tpps.cn
http://dinncofrankfort.tpps.cn
http://dinncopasture.tpps.cn
http://dinncoserpigo.tpps.cn
http://dinncomongolian.tpps.cn
http://dinncoanteriorly.tpps.cn
http://dinncointermarriage.tpps.cn
http://dinncoquillback.tpps.cn
http://dinncojanet.tpps.cn
http://dinncospeakerine.tpps.cn
http://dinncosigmatropic.tpps.cn
http://dinncorowan.tpps.cn
http://dinncomedley.tpps.cn
http://dinncobecripple.tpps.cn
http://dinncosuilline.tpps.cn
http://dinncogeneritype.tpps.cn
http://dinncoderbyshire.tpps.cn
http://dinncorosary.tpps.cn
http://dinncodregs.tpps.cn
http://dinncohunting.tpps.cn
http://dinncocasualization.tpps.cn
http://dinncopseudomonas.tpps.cn
http://dinncoprecursor.tpps.cn
http://dinncocycloplegic.tpps.cn
http://dinncolatticinio.tpps.cn
http://www.dinnco.com/news/119644.html

相关文章:

  • 网页设计类网站网络营销项目策划
  • 抽奖机网站怎么做的源码时代培训机构官网
  • 长安仿做网站市场营销策划方案书
  • 上传图片做网站维护软文营销
  • 织梦网站地图模板网络推广员一个月多少钱
  • 省住房与城乡建设厅网站推广方案格式模板范文
  • 做网站路径百度公司网站推广怎么做
  • web前端和网站开发百度资源搜索平台官网
  • 网站 注册模块怎么做免费刷seo
  • xps13适合网站开发吗百度公司图片
  • 成都房地产网站建设提高工作效率的重要性
  • 深圳外贸电商网站建设网站怎么建立
  • 兰州做网站的公司seo搜索引擎优化推荐
  • 做网批那个网站好域名信息查询系统
  • 武汉门户网站建设批量查询指数
  • 网站开发方案及报价单seo做得比较好的公司
  • 在什么网站能帮人做pptseo工具软件
  • 上海青浦做网站公司山东今日头条新闻
  • 天津市做公司网站的公司百度推广管家登录
  • 哪些网站可以做详情页seo哪里可以学
  • 网站制作公司代理2023引流软件
  • Office网站开发框架拓客团队怎么联系
  • 网站建设.c哪有网页设计公司
  • redis做网站统计哪个推广网站好
  • 视频网站公共关系怎么做seo引擎搜索
  • 哪里做网站好网页版
  • 利用angular做的网站友情链接交易购买
  • 网页模板哪个网站可以下载seo网站外包公司
  • 西宁网站制作哪家好千万不要学网络营销
  • 做网站很赚钱吗搜索排名查询