安装 Elasticsearch 之前,你需要先安装一个较新的版本的 Java,最好的选择是,你可以从 www.java.com 获得官方提供的最新版本的 Java。
之后,你可以从 elastic 的官网 elastic.co/downloads/elasticsearch 获取最新版本的 Elasticsearch。
解压压缩包,阅读README,根据readme来操作:
* "Download":https://www.elastic.co/downloads/elasticsearch
and unzip the Elasticsearch official distribution.
* Run @bin/elasticsearch@ on unix, or @bin\elasticsearch.bat@ on windows.
* Run @curl -X GET http://localhost:9200/@.
* Start more servers ...
运行下面语句:
这就意味着你现在已经启动并运行一个 Elasticsearch 节点了,你可以用它做实验了。
安装交互工具:
一、下载安装Kibana
二、启动Kibana
./bin/kibana
//Windows 上启动 kibana: bin\kibana.bat
三、在 Kibana 目录下运行下面的命令,下载并安装 Sense app
./bin/kibana plugin --install elastic/sense
//Windows上面执行: bin\kibana.bat plugin --install elastic/sense
四、在你的浏览器中打开 Sense: http://localhost:5601/app/sense
至此,安装运行完成