Skip to content

Instantly share code, notes, and snippets.

@Globegitter Globegitter/es.sh

Last active Feb 16, 2020
Embed
What would you like to do?
Easy install for elasticsearch on Ubuntu 14.04
cd ~
##If you want to install OpenJDK
#sudo apt-get update
#sudo apt-get install openjdk-8-jre-headless -y
###Or if you want to install Oracle JDK, which seems to have slightly better performance
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.4.2.deb
sudo dpkg -i elasticsearch-1.4.2.deb
### NOT starting elasticsearch by default on bootup, please execute
sudo update-rc.d elasticsearch defaults 95 10
### In order to start elasticsearch, execute
sudo /etc/init.d/elasticsearch start
#To test it all worked:
#curl http://localhost:9200
#Should return some JSON Object including the version number
@kaleidoscope684

This comment has been minimized.

Copy link

kaleidoscope684 commented Aug 27, 2015

Thanks for write-up! Successfully installed and running in under 5 minutes. I spent hours last night trying to get this to run.

@ramonsenadev

This comment has been minimized.

Copy link

ramonsenadev commented Sep 2, 2015

Thanks!! All work!! :)

@luisdaher

This comment has been minimized.

Copy link

luisdaher commented Sep 14, 2015

thanks for sharing this! :D

@KIMSeongJoo

This comment has been minimized.

Copy link

KIMSeongJoo commented Sep 29, 2015

thanks!!!

@shkurkin

This comment has been minimized.

Copy link

shkurkin commented Oct 2, 2015

Appreciated!

@shredding

This comment has been minimized.

Copy link

shredding commented Oct 8, 2015

Finally one that worked, thanks!

@firmanm

This comment has been minimized.

Copy link

firmanm commented Oct 11, 2015

haturnuhun

@hwatkins

This comment has been minimized.

Copy link

hwatkins commented Oct 15, 2015

Worked well, just need to update the version like mentioned in the script

@macejmic

This comment has been minimized.

Copy link

macejmic commented Nov 16, 2015

Thank you very much! 👍

@veronicacannon

This comment has been minimized.

Copy link

veronicacannon commented Nov 18, 2015

Perfect. Well written and very helpful. Thank you!

@Sasikala-Ravichandran

This comment has been minimized.

Copy link

Sasikala-Ravichandran commented Nov 18, 2015

Thanks a lot for your effort ...It was indeed very helpful...

@tmacneil

This comment has been minimized.

Copy link

tmacneil commented Dec 4, 2015

Very nice! Worked like a charm. FYI to anyone using ElasticSearch on AWS, they use version 1.5.2. I literally replaced "1.4.2" with "1.5.2" in the above and it worked fine.

@jtomaszewski

This comment has been minimized.

Copy link

jtomaszewski commented Mar 3, 2016

Use this for elasticsearch 2.x :

wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "deb http://packages.elastic.co/elasticsearch/2.x/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-2.x.list
@ghost

This comment has been minimized.

Copy link

ghost commented Mar 10, 2016

Thanks for amazing write up.

@nihalni1

This comment has been minimized.

Copy link

nihalni1 commented Jun 3, 2016

Thnq... Helped a lott...!!

@samynathan17

This comment has been minimized.

Copy link

samynathan17 commented Aug 23, 2016

1.how to setup for Elasticsearch multi node cluster ?
2. what are all the steps doing in elasticsearch.yml file?

@rordev20

This comment has been minimized.

Copy link

rordev20 commented Apr 11, 2017

Thanks alot

@smcnally

This comment has been minimized.

Copy link

smcnally commented Jul 24, 2017

Thanks for these instructions. FWIW, I had to mod these steps for my 14.04 installation:

Add tools for add-apt-respository (probably because this box is upgraded from previous versions):

sudo apt-get install python-software-properties

then add the openjdk repo:

sudo add-apt-repository ppa:openjdk-r/ppa

then install worked. dpkg install failed on the latest elasticsearch deb (5.5.0), so I got the latest in the 2.x line --

https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/2.4.5/elasticsearch-2.4.5.deb

which is working well now.

@permarja

This comment has been minimized.

Copy link

permarja commented Aug 2, 2017

Thanks!!!!!

@krishnasrihari

This comment has been minimized.

Copy link

krishnasrihari commented Aug 9, 2017

Thanks!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.