1.下载zookeeper源码
https://github.com/apache/zookeeper
cd zookeeper
2.安装ant
使用brew安装ant
brew install ant

查看ant是否安装成功

3.编译源码
ant eclipse
出现如下提示就是编译成功

4.导入idea启动server
找到ZooKeeperServerMain类,并自定义传入修改传入参数。

5.启动

https://github.com/apache/zookeeper
cd zookeeper
brew install ant
ant eclipse
找到ZooKeeperServerMain类,并自定义传入修改传入参数。
本文标题:Mac编辑运行zookeeper源码
本文链接:https://www.haomeiwen.com/subject/ijqvmctx.html
网友评论