安裝zookeeper以前,須要先安裝jdk,能夠參考以前我寫的文章html
Ubuntu快速安裝JDKjava
Centos快速安裝JDKbash
在這裏下載zookeeper:https://download.csdn.net/download/ccgshigao/12705620app
tar xvf zookeeper.tar
cp zookeeper /opt/ -r
chmod +x /opt/zookeeper
mkdir -p /etc/zookeeper cp /opt/zookeeper/conf/zoo.cfg /etc/zookeeper/
執行ifconfig,查看eth0對應ip:172.31.11.77(這裏你的網卡可能叫別的名字,好比ens0等)jvm
mkdir -p /data/zookeeper/data/ echo 1 > /data/zookeeper/data/myid
這裏注意JAVA_HOME替換成你實際的JAVA_HOME測試
chmod +x /etc/init.d/zookeeper
/etc/init.d/zookeeper start
/etc/init.d/zookeeper status
博主:測試生財spa
座右銘:用測試完成原始積累,用投資奔向財務自由.net
csdn:https://blog.csdn.net/ccgshigao3d