1.首先需要安装Java 环境
2.brew install elasticsearch
3. 开启服务
brew services start elasticsearch
4. 访问端口 http://localhost:9200
接口返回数据
{
"name" : "Hu1Gn2E",
"cluster_name" : "xxxxxx",
"cluster_uuid" : "xxxxx",
"version" : {
"number" : "6.8.7",
"build_flavor" : "oss",
"build_type" : "tar",
"build_hash" : "c63e621",
"build_date" : "2020-02-26T14:38:01.193138Z",
"build_snapshot" : false,
"lucene_version" : "7.7.2",
"minimum_wire_compatibility_version" : "5.6.0",
"minimum_index_compatibility_version" : "5.0.0"
},
"tagline" : "You Know, for Search"
}