How-to Install Elasticsearch on Debian 7 OVH VPS

install python-software-properties :

apt-get install python-software-properties

install a non official repository Oracle Java :

echo "deb precise main" | tee /etc/apt/sources.list.d/webupd8team-java.list
echo "deb-src precise main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
apt-key adv --keyserver hkp:// --recv-keys EEA14886
apt-get update

install Oracle JDK 7

apt-get install oracle-java7-installer

Download and install the Elasticsearch Public Signing Key

wget -qO - | sudo apt-key add -

Add the following to your /etc/apt/sources.list to enable the repository

deb stable main

Run apt-get update and the repository is ready for use. You can install it with :

apt-get update && apt-get install elasticsearch

Leave a Reply

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