Install Elasticsearch on Linux or Mac OS X
You need JAVA, start by installing/updating Java. If you plan to do development with Elasticsearch, get the JDK, otherwise, the JRE will be sufficient. Official downloads page.
Install Elasticsearch with tar.gz
Follow this link and click on TAR
Unarchivate and run ES :
tar -xzvf elasticsearch-6.2.4.tar.gz
Install with apt-get on Linux
Import the public key with (you should use sudo to do all these commands) and create a list file for Elasticsearch
wget -qO - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | apt-key add -echo "deb http://packages.elastic.co/elasticsearch/1.5/debian stable main" | tee -a /etc/apt/sources.list.d/elk.list
Update apt-get and run the installation process
apt-get install -y elasticsearch
Install Elasticsearch with Homebrew on Mac OS X
First of all, install Homebrew. Mac os x users should be familiar with it (brew). Run this command in terminal :
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Now we can use brew command in terminal to install ES :
brew install elasticsearch
In this case to run ES enter the command :
Check that ES work
by default, ES works on http://127.0.0.1:9200/ . So to check ES work without any errors run this command in terminal :
You should see the default answer with version
Or simply open this address in your navigator :
Now you can work with elasticsearch on your localhost! If you have any questions please feel free to contact me. I will be glad to answer.
By the way, you can take a look on the ElasticSearch Basics article.