• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to Install Elasticsearch on RHEL7.6

  • 00:22 cat /etc/os-release
  • 00:33 wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.8.0-x86_64.rpm
  • 01:06 rpm -Uvh elasticsearch-7.8.0-x86_64.rpm
  • 01:19 systemctl daemon-reload
  • 01:29 systemctl enable elasticsearch.service
  • 01:46 systemctl start elasticsearch.service
  • 02:02 vim /etc/elasticsearch/elasticsearch.yml
  • 02:54 systemctl restart elasticsearch.service
  • 03:10 systemctl status elasticsearch.service
6322

How to Install Elasticsearch on RHEL7.6

Introduction:

Elasticsearch is a distributed, open source search and analytics engine. It supports all types of data including textual, numerical, geospatial, structured, and unstructured ones. This tutorial covers the method to install Elasticsearch on RHEL7.6

Installation Process:

To check the installed version of OS, run

[root@linuxhelp ~]# cat /etc/os-release 
NAME="Red Hat Enterprise Linux Server"
VERSION="7.6 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.6"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.6 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.6:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.6
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.6"

We need to download the Elasticsearch rpm package to install

[root@linuxhelp ~]# wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.8.0-x86_64.rpm
--2020-08-25 16:58:01--  https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.8.0-x86_64.rpm
Resolving artifacts.elastic.co (artifacts.elastic.co)... 151.101.2.222, 151.101.66.222, 151.101.130.222, ...
Connecting to artifacts.elastic.co (artifacts.elastic.co)|151.101.2.222|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 319213800 (304M) [application/octet-stream]
Saving to: ‘elasticsearch-7.8.0-x86_64.rpm’
100%[==================================================================================>] 31,92,13,800  971KB/s   in 4m 35s 
2020-08-25 17:02:36 (1.11 MB/s) - ‘elasticsearch-7.8.0-x86_64.rpm’ saved [319213800/319213800]

Once, the download has been completed use the below command to install elasticsearch 
[root@linuxhelp ~]# rpm -Uvh elasticsearch-7.8.0-x86_64.rpm 
warning: elasticsearch-7.8.0-x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID d88e42b4: NOKEY
Preparing...                          ################################# [100%]
Creating elasticsearch group... OK
Creating elasticsearch user... OK
Updating / installing...
  1:elasticsearch-0:7.8.0-1          ################################# [100%]
NOT starting on installation, please execute the following statements to configure elasticsearch service to start automatically using systemd
sudo systemctl daemon-reload
sudo systemctl enable elasticsearch.service
You can start elasticsearch service by executing
sudo systemctl start elasticsearch.service
Created elasticsearch keystore in /etc/elasticsearch/elasticsearch.keystore

After installation we have to reload the daemon service

[root@linuxhelp ~]# systemctl daemon-reload

Now, enable the service for permanent

[root@linuxhelp ~]# systemctl enable elasticsearch.service
Created symlink from /etc/systemd/system/multi-user.target.wants/elasticsearch.service to /usr/lib/systemd/system/elasticsearch.service.

Use the following command to start elasticsearch service

[root@linuxhelp ~]# systemctl start elasticsearch.service

We have to configure the Elasticsearch yml file

[root@linuxhelp ~]# vim /etc/elasticsearch/elasticsearch.yml 

After the configuration restart the service to update the changes

[root@linuxhelp ~]# systemctl restart elasticsearch.service 

Now check the service status of Elasticsearch

[root@linuxhelp ~]# systemctl status elasticsearch.service 
● elasticsearch.service - Elasticsearch
  Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)
  Active: active (running) since Tue 2020-08-25 17:09:55 IST; 21s ago
    Docs: https://www.elastic.co
Main PID: 67525 (java)
   Tasks: 46
  CGroup: /system.slice/elasticsearch.service
          ├─67525 /usr/share/elasticsearch/jdk/bin/java -Xshare:auto -Des.networkaddress.cache.ttl=60 -Des.networkaddress...
          └─67680 /usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/bin/controller

Aug 25 17:09:10 linuxhelp systemd[1]: Starting Elasticsearch...
Aug 25 17:09:55 linuxhelp systemd[1]: Started Elasticsearch…

Open the browser to check elastic search 1

In new tab provide ip address of your system with the port number of elasticsearch 2 3

With this, the method to install Elasticsearch on RHEL7.6 comes to end.

Tags:
liam
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

What is Elasticsearch?

A

Elasticsearch is a distributed, open source search and analytics engine. It supports all types of data including textual, numerical, geospatial, structured, and unstructured ones.

Q

What is the default port number of Elasticsearch?

A

The default port number of Elasticsearch is 9200

Q

What is the latest version of Elasticsearch?

A

The latest version of Elasticsearch is 7.9.0

Q

Can I use Elastic Cloud on platforms other than AWS?

A

Yes, you can create Elastic Cloud deployments on the Google Cloud Platform.

Q

Why there is a need for Elasticsearch?

A

Elasticsearch is a real-time distributed and open source full-text search and analytics engine. It is used in Single Page Application (SPA) projects. Elasticsearch is open source developed in java

Related Tutorials in How to Install Elasticsearch on RHEL7.6

Related Tutorials in How to Install Elasticsearch on RHEL7.6

How to enable repositories on RHEL7.6 without Red Hat-Subscription
How to enable repositories on RHEL7.6 without Red Hat-Subscription
Sep 5, 2020
How to check the lsb_release of your redhat based Linux distros
How to check the lsb_release of your redhat based Linux distros
Jun 8, 2018
How to Install Docker-CE on RHEL-7.6
How to Install Docker-CE on RHEL-7.6
Sep 11, 2020
Steps to do after minimal installation of RHEL/CentOS
Steps to do after minimal installation of RHEL/CentOS
May 5, 2016
How To Install Elasticsearch On Centos7.6
How To Install Elasticsearch On Centos7.6
Aug 7, 2020
How to Install Elasticsearch on RHEL7.6
How to Install Elasticsearch on RHEL7.6
Sep 10, 2020
How to replace and update document in Kibana Application on Elastic Search
How to replace and update document in Kibana Application on Elastic Search
Mar 21, 2018
How To Install Gitlab on REDHAT 8.5
How To Install Gitlab on REDHAT 8.5
May 28, 2022

Related Forums in How to Install Elasticsearch on RHEL7.6

Related Forums in How to Install Elasticsearch on RHEL7.6

redhat
ethan class=
How to fix "container-selinux >= 2:2.74" issue while Installing Docker-CE on RHEL7.6
Aug 25, 2020
Kibana
victorsamuel class=
Kibana server is not ready yet
Feb 1, 2019
Elastic Search
zmirameriem class=
Metricbeat failed to connect with elasticsearch
Jul 4, 2019
CentOS
perlinjones class=
system call filter failed in elastic search
Feb 2, 2018
Linux
AadrikaAnshu class=
How to add timestamps to history On Any Linux Machine
Jun 18, 2019
Elastic Search
baseer class=
elasticsearch dead
Sep 14, 2018
redhat
BlackRishi class=
RHVM_installation issuses
Jul 31, 2019
redhat
atly class=
How to install qcow2 images on a virtual machine on rhev 7.5
Jan 2, 2019

Related News in How to Install Elasticsearch on RHEL7.6

Related News in How to Install Elasticsearch on RHEL7.6

Tommy Hilfiger's ElasticSearch Database Exposed With its Customers' Personal Information
Tommy Hilfiger's ElasticSearch Database Exposed With its Customers' Personal Information
May 3, 2019
Red Hat Enterprise Linux 6.9 Hits Beta
Red Hat Enterprise Linux 6.9 Hits Beta
Jan 6, 2017
Red Hat initiates new pilot program to ease into Digital Transformation
Red Hat initiates new pilot program to ease into Digital Transformation
Mar 30, 2017
Red Hat Preconized Red Hat Openstack Platform 11
Red Hat Preconized Red Hat Openstack Platform 11
May 10, 2017
The University of Chicago Medicine Exposed ‘Perspective Givers’ Database With More Than A Million of Records
The University of Chicago Medicine Exposed ‘Perspective Givers’ Database With More Than A Million of Records
Jun 12, 2019
Red Hat Enterprise Linux 7.7 beta rolled out
Red Hat Enterprise Linux 7.7 beta rolled out
Jun 7, 2019
IBM TO ACQUIRE RED HAT
IBM TO ACQUIRE RED HAT
Nov 15, 2018
Oracle Vulnerability Exploited in the Wild
Oracle Vulnerability Exploited in the Wild
Jun 25, 2019
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Owen ?
How to add SSH key to my Gitlab account

I need to add the SSH key in my gitlab account. How to do so ????

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.