Skip to content

Instantly share code, notes, and snippets.

@joshuar
Created September 22, 2015 05:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshuar/e478266258be951c60a5 to your computer and use it in GitHub Desktop.
Save joshuar/e478266258be951c60a5 to your computer and use it in GitHub Desktop.
Quick Elasticsearch install script
#!/usr/bin/env bash
ES_VERSION="1.7.2"
ES_URL="https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-$ES_VERSION.tar.gz"
curl -s -L -o - $ES_URL | tar -xz -C /opt \
&& ln -s /opt/elasticsearch-$ES_VERSION /opt/elasticsearch \
&& mkdir /opt/elasticsearch/{data,logs,plugins}
chown -R vagrant:vagrant /opt/elasticsearch-${ES_VERSION}
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment