Skip to content

Instantly share code, notes, and snippets.

@biske
Last active August 29, 2015 13:58
Show Gist options
  • Save biske/10019612 to your computer and use it in GitHub Desktop.
Save biske/10019612 to your computer and use it in GitHub Desktop.
Install Elasticsearch on Ubuntu
Prerequisites
sudo apt-get install openjdk-7-jdk
Install
cd ~
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.0.deb
sudo dpkg -i elasticsearch-1.1.0.deb
Start
sudo service elasticsearch start
Test
curl http://localhost:9200
should respond with something like:
{
"status" : 200,
"name" : "Caleb Alexander",
"version" : {
"number" : "1.1.0",
"build_hash" : "2181e113dea80b4a9e31e58e9686658a2d46e363",
"build_timestamp" : "2014-03-25T15:59:51Z",
"build_snapshot" : false,
"lucene_version" : "4.7"
},
"tagline" : "You Know, for Search"
}
If there is not curl on machine type http://localhost:9200 in browser and effect should be the same.
Install ElasticHQ
cd /usr/share/elasticsearch
sudo bin/plugin -install royrusso/elasticsearch-HQ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment