Skip to content

Instantly share code, notes, and snippets.

@hathaway
Forked from rajraj/es.sh
Last active July 12, 2017 20:32
Show Gist options
  • Save hathaway/9282568 to your computer and use it in GitHub Desktop.
Save hathaway/9282568 to your computer and use it in GitHub Desktop.
cd ~
sudo yum update
sudo yum install java-1.7.0-openjdk -y
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.0.1.tar.gz
tar -xf elasticsearch-1.0.1.tar.gz
rm elasticsearch-1.0.1.tar.gz
sudo mv elasticsearch-1.0.1 /usr/local/share/elasticsearch
curl -L http://github.com/elasticsearch/elasticsearch-servicewrapper/tarball/master | tar -xz
mv *servicewrapper*/service /usr/local/share/elasticsearch/bin/
rm -Rf *servicewrapper*
sudo /usr/local/share/elasticsearch/bin/service/elasticsearch install
sudo /etc/init.d/elasticsearch start
#curl http://localhost:9200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment