CentOS7 Zookeeper3.8.3 单节点安装 1、把压缩包丢tools里,进tools cd /tools 2、解压到training tar -zxvf /tools/apache-zookeeper-3.8.3-bin.tar.gz -C /training 3、进training cd /training 4、重命名 mv apache-zookeeper-3.8.3-bin zookeeper 5、进zookeeper cd /zookeeper 6、跟着弄不想写了 mkdir data cd data touch myid echo "1" > myid 7、进conf文件夹 cd /training/zookeeper/conf/ 8、备份并更改 cp zoo_sample.cfg zoo.cfg 9、进文件,把这个位置换成以下内容 vi zoo.cfg dataDir=/training/zookeeper/data 10、进路径 cd /training/zookeeper/bin 11、启动zookeeper ./zkServer.sh start 12、验证 jps 拜拜