一、源码环境搭建
1、将准备好的zookeeper-release-3.5.4
导入IDEA中
2、启动服务端
运行主类org.apache.zookeeper.server.ZooKeeperServerMain
,将zoo.cfg
的完整路径配置在Program arguments
。
在VM options
配置,即指定到conf
目录下的log4j.properties
:
-Dlog4j.configuration=file:/Users/Riemann/Code/framework-source-code-analysis