Elasticsearch 7.6.1 service won't start in Ubuntu server 18.04

Hi @ManuelF.

just try with my steps with Ubuntu-18 as below-

Step01

Before going to download Elasticsearch file we need to install java
Because Elasticsearch uses java for internal process.
And also we need to set home path for java as below command.
Command :-

$sudo apt update && sudo apt install openjdk-8-jre-headless
$export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64

java under installation process
image
set java home path-


Step02-for Elasticsearch
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add –

echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-5.x.list

install Elasticsearch now by using below command

Command :-
sudo apt update && sudo apt install elasticsearch you can select any version here

image

after complete above step-
we can start Elasticsearch as below command.
**Command :-**

sudo systemctl start elasticsearch.service

now we can verify the Elasticsearch running status by using beow command
**Command :-**
sudo systemctl status elasticsearch.service
image
test Elasticsearch as below -
sudo curl -XGET 'localhost:9200/'

Pls do like , if this is helpful to you :slight_smile:

Thanks
HadoopHelp