Install elasticsearch in ubuntu Install java dependency for elasticsearch - sudo apt-get update - sudo apt-get install default-jre - sudo apt-get install default-jdk Install elasticsearch - wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - - sudo apt-get install apt-transport-https - echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic.list - sudo apt-get update - sudo apt-get install -y elasticsearch - sudo systemctl enable elasticsearch - sudo systemctl start elasticsearch - curl localhost:9200 - systemctl status elasticsearch JVM settings for memory #for memory issue you can update this #open this file /etc/elasticsearch/jvm.options #change these parameters as per your need -Xms512m -Xms512m