1、从github上clone  es的源码

 git clone https://github.com/elastic/elasticsearch.git

2、如果没有安装gradle的话,需要安装gradle

3.在es源码的根目录下执行  gradle idea,坐等编译

遇到一个问题:因为本地的javahome配置错了

编译Elasticsearch源码

配置如下:

export JAVA_HOME=$(/usr/libexec/java_home)

记得要export

4.编译成功后导入idea中

 

相关文章:

  • 2021-08-15
  • 2021-06-05
  • 2021-05-16
  • 2021-05-26
  • 2021-10-08
  • 2021-12-24
  • 2021-09-08
  • 2021-11-06
猜你喜欢
  • 2021-09-16
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2021-12-12
相关资源
相似解决方案