Skip to content

Instantly share code, notes, and snippets.

@ThomasArdal
Created May 5, 2014 11:46
Show Gist options
  • Save ThomasArdal/8c792747d2292588490e to your computer and use it in GitHub Desktop.
Save ThomasArdal/8c792747d2292588490e to your computer and use it in GitHub Desktop.
Script to setup Elasticsearch on Linux
#!/usr/bin/env bash
# update apt
sudo apt-get update
# install java
sudo apt-get install openjdk-7-jre-headless -y
# install elasticsearch
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.1.deb
sudo dpkg -i elasticsearch-1.1.1.deb
sudo service elasticsearch start
# install head
sudo /usr/share/elasticsearch/bin/plugin -install mobz/elasticsearch-head
@wfowlks
Copy link

wfowlks commented Mar 23, 2015

I don't know if you care to update this, but today they just released 1.5.0
Additionally the url is currently being forwarded but I don't know how long that will last.

Lines 10-11:


wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.5.0.deb
sudo dpkg -i elasticsearch-1.5.0.deb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment