Install Elasticsearch on Debian 10/9/8 Tutorial

Today, We want to share with you Install Elasticsearch on Debian 10/9/8 Tutorial.In this post we will show you elasticsearch install elasticsearch, hear for install elasticsearch ubuntu 18.04 digitalocean we will give you demo and example for implement.In this post, we will learn about e: unable to locate package elasticsearch with an example.

Install Elasticsearch on Debian 10/9/8 Tutorial

There are the Following The simple About Install Elasticsearch on Debian 10/9/8 Tutorial Full Information With Example and source code.

As I will cover this Post with live Working example to develop install kibana ubuntu, so the Install Elasticsearch with Debian Package for this example is following below.

Step 1 – Prerequsities

Simple Step by step You need to Debian system using sudo privileged user or root account Details

$ java -version

java version "11.0.2" 2018-10-16 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.2+9-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.2+9-LTS, mixed mode)

install Java on Debian 10 and Debian 9.

$ echo $JAVA_HOME

/usr/lib/jvm/java-8-oracle

Step 2 – Install Elasticsearch on Debian

import GPG key for Elasticsearch packages

sudo apt-get install apt-transport-https
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add 

install latest Elasticsearch 6.X

add-apt-repository "deb https://artifacts.elastic.co/packages/6.x/apt stable main"

install Elasticsearch packages on your system

sudo apt-get update
sudo apt-get install elasticsearch

Step 3 – Configure Elasticsearch on Debian

sudo nano /etc/elasticsearch/elasticsearch.yml

/etc/elasticsearch/elasticsearch.yml

 network.host: 0.0.0.0
 cluster.name: ES_Cluster_01
 node.name: "Cluster_01_Node_001"

Step 4 – Manage Elasticsearch Service

sudo /bin/systemctl enable elasticsearch.service

Elasticsearch can be started and stopped

sudo systemctl start elasticsearch.service
sudo systemctl stop elasticsearch.service

Step 5 – Test Elasticsearch Setup

GET command using curl to verify the setup

curl -X GET http://192.168.10.100:9200

simple Output

{
  "name" : "California DataCenter 1",
  "cluster_name" : "Cluster_01_Node_001",
  "cluster_uuid" : "GWqKIFxSQOy2FhyMO-tB5g",
  "version" : {
    "number" : "6.4.2",
    "build_flavor" : "default",
    "build_type" : "deb",
    "build_hash" : "04711c2",
    "build_date" : "2018-09-26T13:34:09.098244Z",
    "build_snapshot" : false,
    "lucene_version" : "7.4.0",
    "minimum_wire_compatibility_version" : "5.6.0",
    "minimum_index_compatibility_version" : "5.0.0"
  },
  "tagline" : "You Know, for Search"
}
Angular 6 CRUD Operations Application Tutorials

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about Install Elasticsearch on Debian 10/9/8 Tutorial.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Leave a Comment