Skip to content

Instantly share code, notes, and snippets.

@jsuchal
Forked from mlocher/install_elasticsearch.sh
Last active August 29, 2015 14:14
Show Gist options
  • Save jsuchal/795d534ece998d08f1f8 to your computer and use it in GitHub Desktop.
Save jsuchal/795d534ece998d08f1f8 to your computer and use it in GitHub Desktop.
#!/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