Elasticsearch can be installed in four easy steps:
- Download the Elasticsearch packaged in a ZIP file from https://www.elastic.co/downloads/elasticsearch.
- Extract Elasticsearch from the ZIP file upon download.
- Run Elasticsearch from your terminal. Thus, run bin/elasticsearch (bin/elasticsearch.bat on Windows):
After executing bin/elasticsearch in your terminal, Elasticsearch will run on your system:
After running Elasticsearch, you can check if it's functioning properly by running the following command from your terminal:
curl -XGET http://localhost:9200
If everything is set up correctly, you will get a response similar to the following:
{
"name" : "Df8YuN2",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "Z8SYAKLNSZaMiGkYz7ihfg",
"version" : {
"number" : "6.1.1",
"build_hash" : "bd92e7f",
"build_date" : "2017-12-17T20:23:25.338Z",
"build_snapshot" : false,
"lucene_version" : "7.1.0",
"minimum_wire_compatibility_version" : "5.6.0",
"minimum_index_compatibility_version" : "5.0.0"
},
"tagline" : "You Know, for Search"
}