Skip to content

Instantly share code, notes, and snippets.

@brandonhilkert
Created February 29, 2012 15:53
Show Gist options
  • Save brandonhilkert/1941938 to your computer and use it in GitHub Desktop.
Save brandonhilkert/1941938 to your computer and use it in GitHub Desktop.
Installation script for Elasticsearch on Ubuntu
sudo apt-get update
sudo apt-get install openjdk-6-jre-headless -f
sudo wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.18.7.tar.gz -O elasticsearch.tar.gz
sudo tar -xf elasticsearch.tar.gz
sudo rm elasticsearch.tar.gz
sudo mv elasticsearch-0.18.7 elasticsearch
sudo mv elasticsearch /usr/local/share
sudo wget http://github.com/elasticsearch/elasticsearch-servicewrapper/tarball/master -O - | tar xz
sudo mv elasticsearch-elasticsearch-servicewrapper-3e0b23d/service /usr/local/share/elasticsearch/bin/
sudo rm -rv elasticsearch-elasticsearch-servicewrapper-3e0b23d/
sudo /usr/local/share/elasticsearch/bin/service/elasticsearch install
sudo ln -s `readlink -f /usr/local/share/elasticsearch/bin/service/elasticsearch` /usr/local/bin/rcelasticsearch
sudo service elasticsearch start
curl localhost:9200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment