Skip to content

Instantly share code, notes, and snippets.

@sh1nj1
Created April 21, 2015 09:20
Show Gist options
  • Save sh1nj1/75cbff1e0c90c0d19db5 to your computer and use it in GitHub Desktop.
Save sh1nj1/75cbff1e0c90c0d19db5 to your computer and use it in GitHub Desktop.
Install elasticsearch
#!/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