Kibana源码探索
1.搭建kibana源码编译环境
前提条件:
拥有Java的环境。
服务器配置为:阿里云ECS,1核,2G内存
下载elasticsearch安装包,放在/opt/elasticsearch ⽬录下:
https://www.elastic.co/cn/downloads/past-releases/elasticsearch-5-5-3
vi bin/elasticsearch
#配置自己的jdk
export JAVA_HOME=/opt/Elasticsearch/elasticsearch-7.13.1/jdk
export PATH=$JAVA_HOME/bin:$PATH
#添加jdk判断
if [ -x "$JAVA_HOME/bin/java" ]; then
JAVA="/opt/Elasticsearch/elasticsearch-7.13.1/jdk/bin/java"
else
JAVA=`which java`
fi
/usr/local/java/jdk1.8.0_251