-
-
Save RobertoBarros/5adfaf010afafdeb577f to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
VERSION="0.90.1" | |
PORT="9200" | |
PWD=`pwd` | |
mkdir -p ~/elasticsearch/ | |
cd ~/elasticsearch/ | |
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-${VERSION}.zip | |
unzip elasticsearch-${VERSION}.zip | |
cd elasticsearch-${VERSION} | |
echo "http.port: ${PORT}" >> config/elasticsearch.yml | |
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment