zookeeper 安装
tar -zxvf /root/soft/zookeeper-3.4.13.tar.gz -C /app/
vim /etc/profile
# zookeeper
export ZK_HOME=/app/zookeeper-3.4.13
export PATH=$ZK_HOME/bin:$PATH
cd /app/zookeeper-3.4.13/conf
mv /app/zookeeper-3.4.13/conf/zoo_sample.cfg /app/zookeeper-3.4.13/conf/zoo.cfg
vim /app/zookeeper-3.4.13/conf/zoo.cfg
dataDir=/app/zookeeper-3.4.13/data
server.1=192.168.5.251:2888:3888
server.2=192.168.5.252:2888:3888
server.3=192.168.5.253:2888:3888
mkdir /app/zookeeper-3.4.13/data
vim /app/zookeeper-3.4.13/data/myid
分别写1、2、3
source /etc/profile
firewall-cmd --zone=public --add-port=2888/tcp --permanent
firewall-cmd --zone=public --add-port=3888/tcp --permanent
systemctl restart firewalld
zkServer.sh start
zkServer.sh status