sudo apt-get update sudo apt-get -y install elasticsearch sudo systemctl start elasticsearch sudo systemctl enable elasticsearch