1. 程式人生 > >zookeeper 下載安裝

zookeeper 下載安裝

 下載:wget https://www-us.apache.org/dist/zookeeper/zookeeper-3.4.13/zookeeper-3.4.13.tar.gz

解壓:tar -zxvf zookeeper-3.4.13.tar.gz 

進入目錄:cd zookeeper-3.4.13/conf

複製預設配置檔案並改名:cp zoo_sample.cfg /usr/local/zookeeper/zookeeper-3.4.13/conf/zoo.cfg

進入bin目錄啟動zookeeper:./zkServer.sh start

zookeeper預設埠為2181,檢視2181埠是否有java程序使用:netstat -apn | grep 2181(如果有則啟動成功。否則失敗)

啟動,停止,重啟:

bin目錄下執行:

./zkServer.sh start

./zkServer.sh stop

./zkServer.sh restart