首先从github上clone源码:
# 克隆源码
git clone https://github.com/elastic/kibana.git
直接在主分支上开发是不太靠谱的,因为找不到与其相匹配的elasticsearch,从我测试的结果来看,现在elasticsearch与kibana对版本匹配度的要求极高,几乎要完全一致,否则将会出现以下错误:
You're running Kibana 5.4.4 with some different versions of Elasticsearch.
Update Kibana or Elasticsearch to the same version to prevent compatibility issues: v5.4