标签:status div class enc focus 出现 end serve usr
安装zookeeper(三台主机上执行)
cd /usr/local/src/
tar -C /usr/local/ -xzf zookeeper-3.5.4.tar.gz
cd /usr/local/zookeeper-3.5.4
ln -s zookeeper-3.5.4 zookeeper
cd /usr/local/zookeeper
cp conf/zoo_sample.cfg conf/zoo.cfg
maxClientCnxns=60 tickTime=2000 initLimit=10 syncLimit=5 dataDir=/usr/local/zookeeper/data dataLogDir=/data/logs/zookeeper clientPort=2181 server.1=192.168.3.220:2888:3888 server.2=192.168.3.221:2888:3888 server.3=192.168.3.222:2888:3888 2888表示zookeeper程序监听端口,3888表示zookeeper选举通信端口。
mkdir -p /usr/local/zookeeper/data
mkdir -p /data/logs/zookeeper
cd /usr/local/zookeeper/bin
./zkServer.sh start#
★★★★通过zkServer.sh status 查询节点状态出现问题★★★
1、查看zk日志文件,host notreched ,(节点之间通信有问题)
2、防火墙放心端口 2888(监听端口) 3888(通信端口) 2181(访问端口)
cd /usr/local/zookeeper/bin
./zkServer.sh stop
标签:status div class enc focus 出现 end serve usr
原文地址:https://www.cnblogs.com/lm970585581/p/9940234.html