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"
}