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

How to install Elasticsearch on Centos 7.4

2257

To install Elasticsearch on CentOS 7.4

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 and used by many big organizations around the world. It is licensed under the Apache license version 2.0. In this brief tutorial, we will be explaining the basics of Elasticsearch and its features.

Install OpenJDK

Since Elasticsearch is written in the Java programming language, you need to install the latest OpenJDK by making use of the following command. By default, it is usually installed in CentOS 7.4, if not, then run the following command.

[root@linuxhelp ~]# yum install java-1.8.0-openjdk.x86_64 &ndash y

Once it is done, you shall check the Java version. If you get a proper output, it means that your OpenJDK is properly running.

[root@linuxhelp ~]# java -version
openjdk version " 1.8.0_151" 
OpenJDK Runtime Environment (build 1.8.0_151-b12)
OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)

You shall now download the latest and stable installation package from its official site as follows.

 [root@linuxhelp ~]# wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.0.1.rpm
--2017-12-15 07:38:55--  https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.0.1.rpm
Resolving artifacts.elastic.co (artifacts.elastic.co)... 54.235.82.130, 184.73.156.41, 54.243.108.41, ...
Connecting to artifacts.elastic.co (artifacts.elastic.co)|54.235.82.130|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 27973688 (27M) [application/octet-stream]
Saving to: ‘ elasticsearch-6.0.1.rpm’ 

100%[============================================> ] 27,973,688  1008KB/s   in 57s    

2017-12-15 07:39:54 (476 KB/s) - ‘ elasticsearch-6.0.1.rpm’  saved [27973688/27973688]

Once it is downloaded, you shall proceed with its installation by triggering the following command.

[root@linuxhelp ~]# rpm -ivh elasticsearch-6.0.1.rpm
warning: elasticsearch-6.0.1.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:6.0.1-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
[root@linuxhelp ~]# systemctl daemon-reload
[root@linuxhelp ~]# systemctl start  elasticsearch 

Once all of it is done, you shall configure your Elasticsearch by making use of the following command.

[root@linuxhelp ~]# vim /etc/elasticsearch/elasticsearch.yml
network.host: 192.168.7.218
http.port: 9200


To check whether your elastic search service is LISTEN state, you shall run the following command.

[root@linuxhelp ~]# netstat &ndash plntu
EN      2058/rpcbind  
.
.
.
.      
tcp        0      0 ::ffff:127.0.0.1:9200       :::*                        LISTEN      3801/java    
.
.
.

Once it is done, you shall navigate to your browser and give http://192.168.7.218:9200 as the URL. If you get the following output, it means that your Elasticsearch is properly installed.
CentOS

With this, this the installation of Elasticsearch comes to an end.


Tags:
jackson
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

Why the need of 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

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

Where is Elastic Cloud hosted?

A

We host our Elasticsearch clusters on Amazon EC2. We have availability zones in these regions: US East (N. Virginia), US West (N. California), US West-2 (Oregon), Europe (Ireland), Asia Pacif

Q

Which Elasticsearch version does Amazon Elasticsearch Service support?

A

Amazon Elasticsearch Service currently supports Elasticsearch versions 6.3, 6.2, 6.0, 5.6, 5.5, 5.3, 5.1, 2.3, and 1.5.

Q

What is an Amazon Elasticsearch domain?

A

Amazon Elasticsearch domains are Elasticsearch clusters created using the Amazon Elasticsearch Service console, CLI, or API. Each domain is an Elasticsearch cluster in the cloud with the computer and storage resources you specify. You can create and delete domains, define infrastructure attributes, and control access and security. You can run one or more Amazon Elasticsearch domains.

Related Tutorials in How to install Elasticsearch on Centos 7.4

Related Tutorials in How to install Elasticsearch on Centos 7.4

How To Install AnyDesk on Centos 7
How To Install AnyDesk on Centos 7
Apr 2, 2018
How to install Tiki Wiki CMS Groupware on CentOS 7
How to install Tiki Wiki CMS Groupware on CentOS 7
May 31, 2018
How to install PHP ImageMagick on CentOS 7
How to install PHP ImageMagick on CentOS 7
Nov 4, 2017
How to Upgrade and Downgrade the PHP Versions on CentOS 7.6
How to Upgrade and Downgrade the PHP Versions on CentOS 7.6
Jun 4, 2019
How to install Apache from Source Code on CentOS 7
How to install Apache from Source Code on CentOS 7
Oct 21, 2017
How to enable or disable repositories in CentOS
How to enable or disable repositories in CentOS
Mar 28, 2018
How to install AWStats on CentOS 7
How to install AWStats on CentOS 7
Dec 8, 2017
How to install Apache JMeter in CentOS 7
How to install Apache JMeter in CentOS 7
Mar 24, 2017

Related Forums in How to install Elasticsearch on Centos 7.4

Related Forums in How to install Elasticsearch on Centos 7.4

CentOS
connor class=
How To Completely Remove Apache package On CentOS 7.6
May 14, 2019
CentOS
ceriaimmaculate class=
setfacl : command not found
Jan 3, 2018
Kibana
victorsamuel class=
Kibana server is not ready yet
Feb 1, 2019
CentOS
mason class=
Error getting authority: Error initializing authority: Could not connect: No such file or directory (g-io-error-quark, 1)
Nov 20, 2018
CentOS
landon class=
Command to find SNMP Version
May 28, 2018
CentOS
arjitharon class=
cannot start minio service help
Mar 10, 2018
Apache tomcat
AadrikaAnshu class=
Cannot find ./catalina.sh The file is absent or does not have execute permission This file is needed to run this program
Jun 17, 2019
gitlab
caden class=
Insufficient space in download directory /var/cache/yum/x86_64/6/base/packages
Jul 22, 2019

Related News in How to install Elasticsearch on Centos 7.4

Related News in How to install Elasticsearch on Centos 7.4

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
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
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 Gibbson ?
How do i run both nginx and apache in same instance on centos

Hi...,

my server is based centos operating system and my webserver is already running on Apache.... i need to run both apache and nginx on same instance ... please help me to implement this concept...

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.