Skip to content

Instantly share code, notes, and snippets.

@lidox
Forked from mystix/install-elasticsearch-debian
Last active October 1, 2015 08:15
Show Gist options
  • Save lidox/c0edfc30542c9864fb1f to your computer and use it in GitHub Desktop.
Save lidox/c0edfc30542c9864fb1f to your computer and use it in GitHub Desktop.
Install ElasticSearch on Debian
VERSION=0.20.7
sudo apt-get update
sudo apt-get install openjdk-7-jdk
# 1.10.2015 $VERSION = 1.6.0
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$VERSION.deb
sudo dpkg -i elasticsearch-$VERSION.deb
# be sure you add "action.disable_delete_all_indices" : true to the config!!
# start script
sudo /etc/init.d/elasticsearch restart
# manual start
cd elasticsearch-1.7.2
bin/elasticsearch
# ------------------------------------------------------------------------------------
# if you want to remove it:
#sudo dpkg -r elasticsearch
# binaries & plugin
#/usr/share/elasticsearch/bin
# log dir
#/var/log/elasticsearch
# data dir
#/var/lib/elasticsearch
# config dir
#/etc/elasticsearch
# sources:
http://www.elasticsearchtutorial.com/elasticsearch-in-5-minutes.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment