# Installing Elasticsearch on Ubuntu Server on AWS

**URL:** https://discuss.elastic.co/t/installing-elasticsearch-on-ubuntu-server-on-aws/215585
**Category:** Elasticsearch
**Created:** [January 19, 2020, 12:56am UTC](https://discuss.elastic.co/t/installing-elasticsearch-on-ubuntu-server-on-aws/215585 "2020-01-19T00:56:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![droidus](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@droidus](https://discuss.elastic.co/u/droidus)
#### Post date: [January 19, 2020, 12:56am UTC](https://discuss.elastic.co/t/installing-elasticsearch-on-ubuntu-server-on-aws/215585/1 "2020-01-19T00:56:34Z")

</div>

I am trying to Install Elasticsearch on Ubuntu Server 16. When I run this command: sudo apt-get install elasticsearch, it fails, saying "could not find java; set JAVA\_HOME". An echo of that variable returns "/opt/jdk-13.0.2". I've read a previous thread, but do not like the idea of running the application as the root user. It also seems that when the elasticsearch user was created, their login directory is set to /bin/false.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [February 16, 2020, 1:08am UTC](https://discuss.elastic.co/t/installing-elasticsearch-on-ubuntu-server-on-aws/215585/2 "2020-02-16T01:08:27Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
