Created
April 21, 2015 09:20
-
-
Save sh1nj1/75cbff1e0c90c0d19db5 to your computer and use it in GitHub Desktop.
Install elasticsearch
This file contains 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
#!/bin/bash | |
version=1.5.1 | |
dir=~/local/elastic-search | |
mkdir ${dir} | |
cd ${dir} | |
curl -O https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-${version}.tar.gz | |
tar xzvf elasticsearch-${version}.tar.gz | |
ln -s elasticsearch-${version} default | |
echo "# Elasticsearch" >> ~/.profile | |
echo "export ES_HOME=${dir}/default" >> ~/.profile | |
echo 'export PATH=$PATH:$ES_HOME/bin' >> ~/.profile | |
source ~/.profile | |
plugin -install mobz/elasticsearch-head | |
plugin -install lukas-vlcek/bigdesk | |
plugin -install lmenezes/elasticsearch-kopf | |
elasticsearch -d | |
cd - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment