安装
前置条件是安装 Java。
然后去 ES 官网下载 ES:
我下载的是 7.2.0。
下载后,解压。
启动
$ cd elasticsearch-7.2.0
$ ./bin/elasticsearch
ES 会监听本地的 9200 端口,打开浏览器访问 http://127.0.0.1:9200,会看到:
{
"name" : "Myhost",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "abtEL4GKRfulSwTfJ0wX5Q",
"version" : {
"number" : "7.2.0",
"build_flavor" : "default",
"build_type" : "tar",
"build_hash" : "508c38a",
"build_date" : "2019-06-20T15:54:18.811730Z",
"build_snapshot" : false,
"lucene_version" : "8.0.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}