You can either install Elasticsearch on-premise or use the Elasticsearch Cloud Service. If you are installing it on-premise, you need to have Java 8 on the host machine before you begin installation.
Download the Elasticsearch installation package for your operating system from the Elasticsearch downloads page.
Then, install and start Elasticsearch by following the instructions for your operating system as described in the Elasticsearch installation documentation.
Verify that Elasticsearch is running
After you start Elasticsearch, you can verify that it is running by sending an HTTP request to localhost:9200 on the host machine. You should see a response that looks like this: