Setup Elasticsearch on Ubuntu Server

Elasticsearch is a open source search engine written in Java and based on Apache Lucene library. Elasticsearch is distributed search engine that supports full-text search with an HTTP web (REST) interface.

In this article I will explain how to install Elasticsearch on Ubuntu 16.04 LTS Server.

Following is step by step tutorial to setup Elasticsearch on Ubuntu 16.04 LTS Server.

Run the following command to add the key to the list of trusted keys.

$ wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -

Add the Elasticsearch repository.

$ echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list

Update the package lists.

$ sudo apt-get update

Run following command to install Elasticsearch using apt package manager.

$ sudo apt-get install elasticsearch

Shoket Mahmood Ahmed

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top