How To Install Elasticsearch Using Source Code In Linux

How To Install Elasticsearch Using Source Code In Linux

ELK stands for Elasticsearch, Logstash, and Kibana. It helps you to keep all logs in one place and analyze the issues by correlating the events at a particular time. we will learn how to install Elasticsearch. We can install Elasticsearch from source code and download it.

Check Out: BootStrap Checks Failed In ElasticSearch


Elasticsearch: it’s an Open Source distributed RESTful search engine based on java which stores all of the collected data. Easy to use, Scalable and flexible.

Logstash: it’s a server-side data processing pipeline that injects data from multiple sources simultaneously transform it then sends the incoming logs to Elastic-search.

Kibana: it’s used to the visualization of logs.

Beats: it’s used to install on the client machine to get the data which will be forwarded to either Elastic-search or log-stash.

Check Out: Error: Can’t Run Elasticsearch As Root

Before installing, You need to know the System requirements of Elastic-search

1. RAM 4GB

2. CPU 2

3. Java 8 or above

Link to download:

Extract the Package:

tar -zxf elasticsearch-6.5.0.tar.gz

elasticsearch source code

Go to the directory: /elasticsearch-6.5.0/bin

You need to install Elasticsearch from a user because it won’t allow you to install it by a root user.

Check Out: Configuration Settings of Elasticsearch Before Installing I

Note: Make sure Java installed and java path must be defined.

If you don’t know how to install Java, Get it  from here 

./elasticsearch -d

download elasticsearch source code

Adding these Ports in the firewall to access it from outside,

firewall-cmd –-permanent –add-port=9200/tcp

firewall-cmd –-permanent –add-port=9300/tcp 

firewall-cmd --reload

After running these, you have to check whether it’s installed or not. or your_ip:9200

If you see this message in a browser that means Elastic-search has been installed.

Check Out: Install Elastisearch Using Repo

You can also use this command curl -X GET “localhost:9200”

Check port listening

netstat -tnlp | grep java

Elastic-search is up and running with Port number 9200.

You’re done download elasticsearch source code

Share on:

I'm the founder of Curious Viral. I hope this blog will provide you complete information about Linux Technology & I would like to share my technical knowledge with you which I have learned during this period.

Other Posts You May Like...

Leave a comment