Skip to content

Instantly share code, notes, and snippets.

@alkema
Created August 11, 2011 16:49
Show Gist options
  • Save alkema/1140152 to your computer and use it in GitHub Desktop.
Save alkema/1140152 to your computer and use it in GitHub Desktop.
install elasticsearch on ubuntu
sudo apt-get install unzip
wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.17.4.zip
unzip elasticsearch-0.17.4.zip
sudo apt-get install python-software-properties
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin
sudo mv elasticsearch-0.17.4 /usr/local/share
cd elasticsearch-servicewrapper
sudo mv service /usr/local/share/elasticsearch-0.17.4/bin
cd /usr/local/share
sudo ln -s elasticsearch-0.17.4 elasticsearch
cd /usr/local/share/elasticsearch
sudo bin/service/elasticsearch stop
sudo bin/service/elasticsearch start -f
sudo bin/service/elasticsearch stop
bin/elasticsearch -f
curl http://localhost:9200
sudo bin/service/elasticsearch start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment