1、首先下载zookeeper源码
地址:https://github.com/apache/zookeeper/tree/release-3.5.4
2、cd到源码目录下,使用ant编译成eclipse能运行的工程(需要在电脑先下载配置ant,才能使用ant命令,如需要请查看本人前一篇文档https://blog.csdn.net/mobile18611667978/article/details/104350343)
3、使用idea打开
运行ZookeeperMain方法启动
zookeeper源码之代码编译构建zookeeper-release-3.5.4
最新推荐文章于 2023-01-04 13:47:49 发布