准备:
安装jdk并配置环境变量
1.下载zip安装包
https://www.elastic.co/cn/downloads/elasticsearch 选择zip文件下载
2.解压elasticsearch-5.6.0.zip
3.启动
进入安装目录 elk\elasticsearch-5.6.0\bin
执行文件 elasticsearch.bat
4.验证服务 http://localhost:9200/
{
"name" : "_BvgAWi",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "jHHgC2utTgKovF-2vWONhg",
"version" : {
"number" : "5.6.0",
"build_hash" : "781a835",
"build_date" : "2017-09-07T03:09:58.087Z",
"build_snapshot" : false,
"lucene_version" : "6.6.0"
},
"tagline" : "You Know, for Search"
}
说明启动成功。
配置文件是 \config\elasticsearch.yml