Skip to content

Instantly share code, notes, and snippets.

@mreinsch
Forked from mlocher/install_elasticsearch.sh
Last active August 29, 2015 14:16
Show Gist options
  • Save mreinsch/2795015c5398a2984109 to your computer and use it in GitHub Desktop.
Save mreinsch/2795015c5398a2984109 to your computer and use it in GitHub Desktop.
#!/bin/bash
ES_VERSION="1.1.1"
ES_PORT="9333"
PWD=`pwd`
mkdir -p ~/elasticsearch/
cd ~/elasticsearch/
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-${ES_VERSION}.zip
unzip elasticsearch-${ES_VERSION}.zip
cd elasticsearch-${ES_VERSION}
echo "http.port: ${ES_PORT}" >> config/elasticsearch.yml
bin/plugin -install elasticsearch/elasticsearch-analysis-icu/2.4.1
bin/plugin -install elasticsearch/elasticsearch-analysis-smartcn/2.4.2
bin/plugin -install elasticsearch/elasticsearch-analysis-kuromoji/2.4.1
bin/plugin -install polyfractal/elasticsearch-inquisitor
# Make sure to use the exact parameters you want for elasticsearch and give it enough sleep time to properly start up
nohup bash -c "./bin/elasticsearch 2>&1" &
cd $PWD
export FOUNDELASTICSEARCH_URL=http://localhost:$ES_PORT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment