es單機安裝

1. wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.6.7.tar.gz

2.解壓

3.chown -R hncl elasticsearch-5.6.7

4. ./bin/elasticsearch 啟動

5.輸入http://localhost:9200/?pretty

或者

curl -XGET 'localhost:9200' 
{
"name" : "Shadow-Hunter",
"cluster_name" : "elasticsearch",
"version" : {
"number" : "2.3.1",
"build_hash" : "bd980929010aef404e7cb0843e61d0665269fc39",
"build_timestamp" : "2016-04-04T12:25:05Z",
"build_snapshot" : false,
"lucene_version" : "5.5.0"
},
"tagline" : "You Know, for Search"
}