Install Elasticsearch

How to install and set up Elasticsearch under Debian Linux

Add Elasticsearch repository:

Trust the respository key:

wget -qO - | sudo apt-key add -

Add the repository to /etc/apt/sources.list:

deb stable main

Update and install:

apt-get update
apt-get install elasticsearch

Configure /etc/elasticsearch/elasticsearch.yml and change the following entries: mycluster "mynode"
node.master: true true
node.rack: myrack [ "myotherhost1", "myotherhost2" ]

Install elasticsearch-HQ plugin:

cd /usr/share/elasticsearch/bin 
./plugin -install royrusso/elasticsearch-HQ

Start Elasticsearch:

/etc/init.d/elasticsearch start

Address in your browser http://myhost:9200/_plugin/HQ/

Enable IP-Forwarding in /etc/sysctl.conf to access the address from another network:

net.ipv4.ip_forward = 1