Skip to content

Instantly share code, notes, and snippets.

@sourcec0de
Last active December 16, 2015 03:09
Show Gist options
  • Save sourcec0de/5368043 to your computer and use it in GitHub Desktop.
Save sourcec0de/5368043 to your computer and use it in GitHub Desktop.
Download and install elasticSearch 0.90.0 as a service.
echo "This script requires superuser access to install apt packages."
echo "You will be prompted for your password by sudo."
# clear any previous sudo permission
sudo -k
cd ~
sudo sh <<SCRIPT
apt-get update
apt-get install openjdk-7-jre-headless -y
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below
# NEW WAY / EASY WAY
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.0.deb
dpkg -i elasticsearch-0.90.0.deb
service elasticsearch start
SCRIPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment