クローン
git clone -b release-3.5.9 https://github.com/apache/zookeeper.git
コンパイル
mvn clean compile -DskipTests
提供
zookeeper-serverの下にある提供されたpomはコメントアウトされており、7つの場所があるはずです
<dependency>
<groupId>jline</groupId>
<artifactId>jline</artifactId>
<!--<scope>provided</scope>-->
</dependency>
zoo.cfg
zoo_sample.cfgをコピーして、zoo.cfgという名前を付けます
スタンドアロンバージョンの開始
スタンドアロンのzookeeperのスタートアップクラスはorg.apache.zookeeper.server.ZooKeeperServerMainです。
スタートアップ構成
Program arguments : $ProjectFileDir$\conf\zoo.cfg
Main Class : org.apache.zookeeper.server.ZooKeeperServerMain
# -Dlog4j.configuration=file:E:/github_project/zookeeper/conf/log4j.properties
VM Options: -Dlog4j.configuration=file:$ProjectFileDir$\conf\log4j.properties
起動