一、安装jdk
1、下载网址:https://www.oracle.com/java/technologies/javase-jdk8-downloads.html
2、安装下载后的jdk
3、配置环境变量
二、下载Elasticsearch
1、下载网址:https://www.elastic.co/downloads/elasticsearch
2、将下载好的es安装包在自己的目录解压
3、进入安装目录,执行命令 ./bin/elasticsearch.bat(或进入bin目录双击elasticsearch.bat文件运行)启动
4、访问http://localhost:9200/
{
"name" : "DESKTOP-TDN2HSE",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "JvGLMa7HSaSFypB6eOitYQ",
"version" : {
"number" : "7.6.2",
"build_flavor" : "default",
"build_type" : "zip",
"build_hash" : "ef48eb35cf30adf4db14086e8aabd07ef6fb113f",
"build_date" : "2020-03-26T06:34:37.794943Z",
"build_snapshot" : false,
"lucene_version" : "8.4.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
返回如上json字符串,即表明es安装成功
5、如启动不成功,根究对应的错误提示操作
1)、如 not fund java一类的错误,请仔细检查jdk环境变量是否配置正确;
2)、JAVA_HOME中不要带有特殊符号(如:D:\Program Files\Java\jdk1.8.0_211)
3)、path中配置不要带磁盘符(如:;%JAVA_HOME%\bin;%JAVA_HOME%\jre;
而非D:;%JAVA_HOME%\bin;%JAVA_HOME%\jre;)
4)、不要带有空格
三、安装kibana插件
1、下载网址:https://www.elastic.co/downloads/kibana
2、将下载后的kibana解压到自己的文件夹
3、进入安装目录,执行命令./bin/kibana.bat(或进入bin目录双击kibana.bat)启动kibana插件
log [08:39:01.137] [info][plugins-service] Plugin "case" is disabled.
log [08:39:33.985] [info][plugins-system] Setting up [37] plugins: [taskManager,siem,licensing,infra,code,encryptedSavedObjects,timelion,features,security,usageCollection,metrics,canvas,apm_oss,translations,reporting,uiActions,data,navigation,share,status_page,newsfeed,inspector,embeddable,advancedUiActions,dashboard_embeddable_container,expressions,visualizations,kibana_legacy,management,dev_tools,home,spaces,cloud,apm,graph,eui_utils,bfetch]
log [08:39:33.987] [info][plugins][taskManager] Setting up plugin
log [08:39:33.999] [info][plugins][siem] Setting up plugin
log [08:39:34.000] [info][licensing][plugins] Setting up plugin
log [08:39:34.002] [info][infra][plugins] Setting up plugin
log [08:39:34.003] [info][code][plugins] Setting up plugin
log [08:39:34.003] [info][encryptedSavedObjects][plugins] Setting up plugin
log [08:39:34.004] [warning][config][encryptedSavedObjects][plugins] Generating a random key for xpack.encryptedSavedObjects.encryptionKey. To be able to decrypt encrypted saved objects attributes after restart, please set xpack.encryptedSavedObjects.encryptionKey in kibana.yml
log [08:39:34.008] [info][plugins][timelion] Setting up plugin
log [08:39:34.009] [info][features][plugins] Setting up plugin
log [08:39:34.010] [info][plugins][security] Setting up plugin
log [08:39:34.011] [warning][config][plugins][security] Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml
log [08:39:34.011] [warning][config][plugins][security] Session cookies will be transmitted over insecure connections. This is not recommended.
log [08:39:34.024] [info][plugins][usageCollection] Setting up plugin
log [08:39:34.026] [info][metrics][plugins] Setting up plugin
log [08:39:34.027] [info][canvas][plugins] Setting up plugin
log [08:39:34.030] [info][apm_oss][plugins] Setting up plugin
log [08:39:34.031] [info][plugins][translations] Setting up plugin
log [08:39:34.031] [info][data][plugins] Setting up plugin
log [08:39:34.035] [info][plugins][share] Setting up plugin
log [08:39:34.036] [info][home][plugins] Setting up plugin
log [08:39:34.040] [info][plugins][spaces] Setting up plugin
log [08:39:34.043] [info][cloud][plugins] Setting up plugin
log [08:39: