Created
September 22, 2015 05:33
-
-
Save joshuar/e478266258be951c60a5 to your computer and use it in GitHub Desktop.
Quick Elasticsearch install script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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