zookeeper安裝部署

2021-10-23 13:33:31 字數 1568 閱讀 5405

計畫zookeeper的安裝目錄為/home/dmp/zookeeper

2.上傳安裝包到臨時目錄/home/python

[root@data2 python]

# ls -lrt

....

..-rw-r--r--. 1 root root 12392394 8月 19 22:43 apache-zookeeper-3.6.0-bin.tar.gz

3.解壓安裝包到安裝目錄

#1.建立安裝目錄

[root@data2 python]

# mkdir /home/dmp/

#2.解壓安裝包到指定目錄下

tar -xzvf /home/python/apache-zookeeper-3.6.0-bin.tar.gz -c /home/dmp/

4.配置

#1.到達安裝目錄

[root@data2 apache-zookeeper-3.6.0-bin]

# cd /home/dmp/apache-zookeeper-3.6.0-bin

#2.在zookeeper中新建data資料夾,做為zookeeper資料儲存資料夾

[root@data2 apache-zookeeper-3.6.0-bin]

# mkdir /home/dmp/apache-zookeeper-3.6.0-bin/data

#3.複製zoo_sample.cfg,並給新起名的zoo.cfg

[root@data2 conf]

# cp /home/dmp/apache-zookeeper-3.6.0-bin/conf/zoo_sample.cfg /home/dmp/apache-zookeeper-3.6.0-bin/conf/zoo.cfg

#4修改zoo.cfg中datadir屬性值為新建data資料夾的路徑(vim zoo.cfg)

[root@data2 conf]

# vim /home/dmp/apache-zookeeper-3.6.0-bin/conf/zoo.cfg

datadir=/home/dmp/apache-zookeeper-3.6.0-bin/data

5.啟動zookeeper服務

/home/dmp/apache-zookeeper-3.6.0-bin/bin/zkserver.sh start
6.驗證是否啟動成功:

[root@data2 logs]

# /home/dmp/apache-zookeeper-3.6.0-bin/bin/zkserver.sh status

zookeeper jmx enabled by default

using config: /home/dmp/apache-zookeeper-3.6.0-bin/bin/../conf/zoo.cfg

client port found: 2181. client address: localhost.

mode: standalone

zookeeper 安裝部署

2.解壓 tar zxvf zookeeper 3.5.1.tar.gz 3.將zookeeper 3.5.1 conf 目錄下的zoo sample.cfg修改為zoo.cfg,配置如下 ticktime 2000 datadir home zookeeper data clientport 21...

Zookeeper安裝部署

zookeeper zookeeper是乙個分布式協調服務的開源框架。主要用來解決分布式集群中應用系統的一致性問題。zookeeper本質上是乙個分布式的小檔案儲存系統。提供基於類似於檔案系統的目錄樹方式的資料儲存,並且可以對樹中的節點進行有效管理。從而用來維護和監控你儲存的資料的狀態變化。通過監控...

zookeeper部署安裝

wget apache zookeeper 3.6.2 bin.tar.gz 2.2 解壓,修改配置 檔案結構說明 cd usr local 解壓壓縮包 tar zxvf apache zookeeper 3.6.2 bin.tar.gz 重新命名 mv apache zookeeper 3.6.2...