In this tutorial, we will explain How to install Elasticsearch on Ubuntu. Elasticsearch is a search engine based on the Lucene library. It provides a distributed, multitenant-capable full-text search engine with an HTTP web interface and schema-free JSON documents. Elasticsearch is developed in Java. Following an open-core business model, parts of the software are licensed under various open source licenses (mostly the Apache License), while other parts fall under the commercial (source-available) Elastic License.
Prerequisites
You will need:
VPS running Ubuntu
Step 1 – Install OpenJDK
Elasticsearch is written in Java programming language so it’s needed to install. To install run this command:
sudo apt-get install openjdk-8-jre
Step 2 – Download Elasticsearch RPM
Now download the Elasticsearch GPG KEY file by running this command: