zookeeper安装问题

1.安装好Java,配置好JAVA_HOME

之前安全的可以通过rpm -e删除掉

2.使用bin版本,含有lib文件

apache-zookeeper-3.5.6-bin.tar.gz

源码包apache-zookeeper-3.5.6.tar.gz 安装时,未编译启动时会报错:

Error: Could not find or load main classorg.apache.zookeeper.server.quorum.QuorumPeerMain

/etc/profile

export JAVA_HOME=/usr/local/jdk1.8.0_221
export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$JAVA_HOME/bin:$PATH

export ZOOKEEPER_HOME=/usr/local/zookeeper
export PATH=$ZOOKEEPER_HOME/bin:$PATH

3.8080端口被占用

Caused by: java.io.IOException: Failed to bind to /0.0.0.0:8080

修改zoo.cfg配置文件

admin.serverPort=9091

你可能感兴趣的:(zookeeper安装问题)