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