-
-
Save Globegitter/662713f90d5af5b4269d to your computer and use it in GitHub Desktop.
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 |
Thanks!! All work!! :)
thanks for sharing this! :D
thanks!!!
Appreciated!
Finally one that worked, thanks!
haturnuhun
Worked well, just need to update the version like mentioned in the script
Thank you very much! 👍
Perfect. Well written and very helpful. Thank you!
Thanks a lot for your effort ...It was indeed very helpful...
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.
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
Thanks for amazing write up.
Thnq... Helped a lott...!!
1.how to setup for Elasticsearch multi node cluster ?
2. what are all the steps doing in elasticsearch.yml file?
Thanks alot
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 --
which is working well now.
Thanks!!!!!
Thanks!!!!
Thanks for write-up! Successfully installed and running in under 5 minutes. I spent hours last night trying to get this to run.