阿里雲上,安裝zookeeper

2021-08-20 18:50:06 字數 996 閱讀 2363

1.解壓zookeeper-3.3.6.tar.gz

mkdir /home/zookeeper3.3.6

tar -xzvf zookeeper-3.3.6.tar.gz -c /home/zookeeper3.3.6

公升級目錄

mv * ..

2.修改配置檔案

cd /home/zookepper3.3.6/conf

cp zoo_sample.cfg zoo.cfg

vim zoo.cfg

加入或修改這兩個配置

datadir=/home/zookeeper3.3.6

datalogdir=/home/zookeeper3.3.6/log

修改系統引數

vim /etc/profile

加入如下配置

# zookeep

export zookeeper_install=/home/zookeeper3.3.6

export path=$path:$zookeeper_install/bin

3.啟動zookeeper

/home/zookeeper3.3.6/bin/zkserver.sh start

顯示如下說明啟動成功

jmx enabled by default

using config: /home/zookeeper3.3.6/bin/../conf/zoo.cfg

starting zookeeper ... started

/home/zookeeper3.3.6/bin/zkserver.sh status

顯示如下說明安裝成功

jmx enabled by default

using config: /home/zookeeper3.3.6/bin/../conf/zoo.cfg

mode: standalone

啟動zookeeper客戶端

/home/zookeeper3.3.6/bin/zkcli.sh

阿里雲linux下安裝zookeeper

本文以新手教程為例,單機版本,非集群。解壓 tar xzvf zookeeper 3.4.10.tar.gz 將zookeeper 3.4.10 conf目錄下的zoo sample.cfg檔案拷貝乙份,命名為為zoo.cfg cp zoo sample.cfg zoo.cfg 切換到 zookee...

2 阿里雲上安裝redis

1.linux上建立存放redis的目錄 mkdir hc rediswget3 解壓 tar zxvf redis 5.0.7.tar.gz4 安裝gcc環境 yum install gcc c 5 編譯與安裝 cd hc redis redis 5.0.7 make 6 等make完成,執行下面...

4 阿里雲上安裝nacos

mkdir hc nacos cd hc nacos tar zxvf nacos server 1.4.1.tar.gz config module related configurations if use mysql as datasource spring.datasource.platfo...