-
-
Save mreinsch/2795015c5398a2984109 to your computer and use it in GitHub Desktop.
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 | |
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