Skip to content

Instantly share code, notes, and snippets.

@smali-kazmi
Last active August 29, 2015 14:06
Show Gist options
  • Save smali-kazmi/717c7d928806f0d6154c to your computer and use it in GitHub Desktop.
Save smali-kazmi/717c7d928806f0d6154c to your computer and use it in GitHub Desktop.
Install Elasticsearch for Ubuntu on Vagrant
cd ~
sudo apt-get update
sudo apt-get install openjdk-7-jre-headless -y
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below
# NEW WAY / EASY WAY
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.1.deb
sudo dpkg -i elasticsearch-1.1.1.deb
### NOT starting elasticsearch by default on bootup, please execute
# sudo update-rc.d elasticsearch defaults 95 10
### In order to start elasticsearch, execute
# sudo /etc/init.d/elasticsearch start
#curl localhost:9200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment