Working with elastic search ubuntu | Ram Laxman Yadav

Working with elastic search ubuntu

Elasticsearch is an open-source, broadly-distributable, readily-scalable, enterprise-grade search engine. Accessible through an extensive and elaborate API, Elasticsearch can power extremely fast searches that support your data discovery applications.

Installing java

Elasticsearch require Java, so first install that. You can install java with the help of Synaptic Package Manager or by:

  • Add Java PPA to apt: sudo add-apt-repository -y ppa:webupd8team/java
  • Update packages: sudo apt-get update
  • Install java sudo apt-get -y install oracle-java8-installer

Import the Elasticsearch public GPG key into apt:

sudo wget -O - | sudo apt-key add -

Create the Elasticsearch source list:

  • echo 'deb stable main' | sudo tee /etc/apt/sources.list.d/elasticsearch.list
  • sudo apt-get update
  • sudo apt-get -y install elasticsearch=1.4.4 Now Elasticsearch is installed. To restrict the access only to local system add a line to your configuration file elasticsearch.yml.

  • sudo vi /etc/elasticsearch/elasticsearch.yml

and then uncomment the option and replace it with:

  • localhost

Start elasticsearch by:

  • sudo service elasticsearch start

If you want to start elasticsearch on bootup then execute:

  • sudo update-rc.d elasticsearch defaults 95 10


Ram Laxman Yadav
Ram Laxman Yadav
Ruby on Rails Developer