美文网首页
Mac编辑运行zookeeper源码

Mac编辑运行zookeeper源码

作者: 撸完代码送快递 | 来源:发表于2019-10-17 15:51 被阅读0次

    1.下载zookeeper源码

    https://github.com/apache/zookeeper
    cd zookeeper
    

    2.安装ant

    使用brew安装ant

    brew install ant
    
    image.png

    查看ant是否安装成功

    image.png

    3.编译源码

     ant eclipse
    

    出现如下提示就是编译成功

    image.png

    4.导入idea启动server

    找到ZooKeeperServerMain类,并自定义传入修改传入参数。


    image.png

    5.启动

    image.png

    相关文章

      网友评论

          本文标题:Mac编辑运行zookeeper源码

          本文链接:https://www.haomeiwen.com/subject/ijqvmctx.html