https://www.elastic.co/guide/en/elasticsearch/reference/5.0/deb.html
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-elasticsearch-on-ubuntu-16-04
download deb file: https://www.elastic.co/downloads/elasticsearch
$ dpkg -i elasticsearch-<Version>.deb
download jdk: http://www.oracle.com/technetwork/java/javase/downloads/index.html
(ex: jdk-10_linux-x64_bin.tar.gz for now)
extract the downloaded tar.gz (ex: /home/dvn0zz/jdk-10)
elasticsearch cannot get JAVA_HOME export from .bashrc or .profile
it needs to be set in /etc/default/elasticsearch (ex: JAVA_HOME=/home/dvn0zz/jdk-10)
sudo /bin/systemctl enable elasticsearch.service
sudo systemctl start elasticsearch.service
sudo systemctl stop elasticsearch.service
sudo systemctl status elasticsearch.service
sudo journalctl --unit elasticsearch --since "2016-10-30 18:17:16"
curl -X GET 'http://localhost:9200'