Blog Spameri

My development blog about PHP, Nette Framework, ElasticSearch or occasional short tips.


Project maintained by Spamercz Hosted on GitHub Pages — Theme by mattgraham

This tutorial is for bash on windows 10, to enable it on your system follow this tutorial http://www.howtogeek.com/249966/how-to-install-and-use-the-linux-bash-shell-on-windows-10/

Step by step copy paste tutorial:

1. Java installation

sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
java -version

Last command should return something like this

java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

2. Elastic installation

Go to home directory.

cd 

Download elasticsearch, in time of article version 5.1.2 is lastest.

curl -L -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.1.2.tar.gz

Extract elasticsearch.

tar -xvf elasticsearch-5.1.2.tar.gz

Go to extracted directory.

cd elasticsearch-5.1.2/bin

And run elasticsearch

./elasticsearch

Posible errors

Back to index RSS

Posted: 19 Jan 2017