Install elasticsearch Ubuntu

Elasticsearch can be downloaded directly from in zip, tar.gz, deb, or rpm packages. For Ubuntu, it's best to use the deb (Debian) package which will install everything you need to run Elasticsearch.

At the time of this writing, the latest Elasticsearch version is 1.7.2. Download it in a directory of your choosing with the command:


Then install it in the usual Ubuntu way with the dpkg command like this:

sudo dpkg -i elasticsearch-1.7.2.deb

Tip: If you want the latest released version of Elasticsearch, go to to find the link, and then use wget to download it to your Droplet. Be sure to download the deb package.

This results in Elasticsearch being installed in /usr/share/elasticsearch/ with its configuration files placed in /etc/elasticsearch and its init script added in /etc/init.d/elasticsearch.

To make sure Elasticsearch starts and stops automatically with the Droplet, add its init script to the default runlevels with the command:

sudo update-rc.d elasticsearch defaults

Tip: Install elasticsearch-head to explore your cluster

cd /usr/share/elasticsearch/
./bin/plugin -install mobz/elasticsearch-head

Then (assuming ElasticSearch is already running on your local machine), open a browser window to:


src do
src so