How To Install Elasticsearch on CentOS 7 with Kibana

Posted on 27 views

Elasticsearch is a highly scalable open-source full-text search and analytics engine tool which helps you to store, search, and analyze big volumes of data in near real time. In this guide, I’ll show you the steps to install Elasticsearch 7/6 on CentOS 7 with Kibana to serve as Elastisearch Dashboard. Kibana lets you visualize your Elasticsearch data and navigate the Elastic Stack

How To Install Elasticsearch on CentOS 7

As Elasticsearch depends on Java, you need it installed on your machine prior to installing Elasticsearch 6 on CentOS 7.

sudo yum install java-11-openjdk-devel java-11-openjdk

Add Elasticsearch repository.

### Elasticsearch 7 ###
cat <### Elasticsearch 6 ###
cat <

Elasticsearch repository is ready for use. You can install Elasticsearch using the command below:

sudo yum install elasticsearch-oss

You can set JVM options like memory limits by editing the file: /etc/elasticsearch/jvm.options

Start and enable elasticsearch service on boot:

sudo systemctl enable --now elasticsearch

Test to verify that it is working:

$ curl -XGET 'http://localhost:9200/_cat/master'
_9iJ9GPcR3CjwsZZPYzMbQ _9iJ9GP

$ curl -XGET 'http://localhost:9200/_cat/nodes' 8 95 2 0.33 0.18 0.08 mdi * _9iJ9GP

Create a test index:

$ curl -X PUT ""

Install Kibana on CentOS 7

Install Kibana open source:

sudo yum install kibana-oss

After a successful installation, configure Kibana

$ sudo vi /etc/kibana/kibana.yml "" ""
elasticsearch.url: "http://localhost:9200"

Change other settings as desired then start Kibana service:

sudo systemctl enable --now kibana

Access http://ip-address:5601 to open Kibana Dashboard:


If you have an active firewall, you’ll need to allow access to Kibana port:

sudo firewall-cmd --add-port=5601/tcp --permanent
sudo firewall-cmd --reload

For Cluster setup, check:


Gravatar Image
A systems engineer with excellent skills in systems administration, cloud computing, systems deployment, virtualization, containers, and a certified ethical hacker.