-
下載zookeeper,http://archive.apache.org/dist/zookeeper/
-
解壓到: /opt/zookeeper-3.4.6下載
-
把conf下的zoo_sample.cfg copy一份後重新命名為: zoo.cfg.檔案中內容如下:
syncLimit=5
initLimit=10
tickTime=2000
clientPort=2181
dataDir=/opt/zookeeper-3.4.6/data
dataLogDir=/opt/zookeeper-3.4.6/logs -
新建zookeeper-3.4.6下的data,log目錄,然後
chmod u+x /opt/zookeeper-3.4.6/bin/* -
新建shell指令碼startZookeeper.sh在/opt/shell資料夾下,
內容:
#!/bin/sh
#to start zookeeper
#set environment
export ZOOKEEPER_INSTALL=/opt/zookeeper-3.4.6
export PATH=$PATH:$ZOOKEEPER_INSTALL/bin
PID_FILE=$ZOOKEEPER_INSTALL/data/zookeeper_server.pid
FLAG=$1if [ “$FLAG” = “os_start” ] && [ -f “$PID_FILE” ]
thenrm $PID_FILE
fi
chmod u+x /opt/shell/startZookeeper.sh
#start zookeeper
$ZOOKEEPER_INSTALL/bin/zkServer.sh start -
設定zookeeper開機啟動
vim /etc/rc.local
在最後一行新增如下兩句話
#start zookeeper
/opt/shell/startZookeeper.sh
Ubuntu_安裝Zookeeper
相關文章
- 【zookeeper安裝】
- Zookeeper安裝
- Zookeeper 安裝配置
- docker安裝zookeeperDocker
- Zookeeper的安裝
- Ubuntu 安裝 ZooKeeperUbuntu
- Mac 安裝 zookeeperMac
- ZooKeeper 安裝部署
- Zookeeper安裝部署
- codis安裝 (java 安裝 + zookeeper 安裝 + go 安裝 + codis 安裝JavaGo
- Zookeeper單機安裝
- kafka和zookeeper安裝Kafka
- ansible安裝zookeeper
- ZooKeeper安裝筆記筆記
- centos下安裝ZooKeeperCentOS
- Zookeeper 安裝和配置
- 3-ZooKeeper安裝
- zookeeper安裝部署步驟
- 初識zookeeper和安裝
- ZooKeeper三種安裝模式模式
- zookeeper下載安裝使用
- Docker教程之十一安裝 ZookeeperDocker
- 安裝Zookeeper和Kafka叢集Kafka
- ZooKeeper分散式專題(一) -- zookeeper安裝以及介紹分散式
- 【Linux】Centos7.6 安裝ZookeeperLinuxCentOS
- Zookeeper(1)-安裝與基礎使用
- CentOS6.5 安裝Zookeeper叢集CentOS
- zookeeper安裝和使用 windows環境Windows
- Dubbo-zookeeper的部署和安裝
- hbase和zookeeper的安裝和部署
- 學習五:zooKeeper的安裝配置
- [Zookeeper-01]什麼是zookeeper?& Linux / Windows Zookeeper安裝和部署(單點)LinuxWindows
- 【Zookeeper】zookeeper叢集安裝
- CentOS上zookeeper叢集模式安裝配置CentOS模式
- centOS安裝zookeeper3.4.6(分散式模式)CentOS分散式模式
- linux安裝zookeeper中各種坑Linux
- zookeeper 叢集安裝(單點與分散式成功安裝)分散式
- Zookeeper-3.4.10 叢集的安裝配置