-
-
Save jsuchal/795d534ece998d08f1f8 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 | |
VERSION="1.1.1" | |
PORT="9333" | |
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