# Elasticsearch 7.6.1 service won't start in Ubuntu server 18.04

**URL:** <https://discuss.elastic.co/t/elasticsearch-7-6-1-service-wont-start-in-ubuntu-server-18-04/222341>\
**Category:** Elasticsearch\
**Created:** [March 5, 2020, 4:35pm UTC](https://discuss.elastic.co/t/elasticsearch-7-6-1-service-wont-start-in-ubuntu-server-18-04/222341 "2020-03-05T16:35:13Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![rameshkr1994](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rameshkr1994/32/59029_2.png) [@rameshkr1994](https://discuss.elastic.co/u/rameshkr1994)\
**Post date:** [March 11, 2020, 8:35am UTC](https://discuss.elastic.co/t/elasticsearch-7-6-1-service-wont-start-in-ubuntu-server-18-04/222341/12 "2020-03-11T08:35:46Z")

</div>

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`

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/0/504f3e0d6cca2943dca2c3c99b3bee8585f9ce71.png)

> java under installation process  
> ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/b/dbeca1a459129711a097abdc9f6e183de80dd9d7.png)  
> set java home path-
> 
> ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/8/386113eea86a3c57350c7a37bc7d0ef7d6e6a5c8.png)  
> `Step02`-for Elasticsearch  
> wget -qO - [https://artifacts.elastic.co/GPG-KEY-elasticsearch](https://artifacts.elastic.co/GPG-KEY-elasticsearch) | sudo apt-key add –

> echo "deb [https://artifacts.elastic.co/packages/5.x/apt](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](https://us1.discourse-cdn.com/elastic/original/3X/4/5/45a578c00cd23a4e41183cd64b01683cb953e625.png)

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

`sudo systemctl start elasticsearch.service`

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/2/124c3ab6c67067ac1dc840e34f9dba55f6a0fff5.png)

> now we can verify the Elasticsearch running status by using beow command  
> ` **Command :-** `  
> `sudo systemctl status elasticsearch.service`  
> ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/1/91229332e81e1d21edbc9105418e66781c7eb899.png)  
> test Elasticsearch as below -  
> `sudo curl -XGET 'localhost:9200/'`
> 
> ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/d/1dbd503855e63064cf068392df87cee22af18d6e.png)

Pls do like , if this is helpful to you 🙂

Thanks  
HadoopHelp

---

_[View the full topic](https://discuss.elastic.co/t/elasticsearch-7-6-1-service-wont-start-in-ubuntu-server-18-04/222341)._
