Installing Elasticsearch on Ubuntu Server on AWS

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.

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