Running Elasticsearch on startup

Mohammed Hammoud
Jul 22, 2017 · 1 min read

I recently created my own Elasticsearch cluster, and for some reason, I don’t know if it’s by default but the Elasticsearch service didn’t start on boot. This could be really annoying if the server for some reason got rebooted or shut down. After some googling I found a really neat solution that solved my issue.

Run the following lines on your machine:

sudo /bin/systemctl daemon-reload
sudo /bin/systemctl enable elasticsearch.service
sudo /bin/systemctl start elasticsearch.service

Happy hacking…

Mohammed Hammoud

Written by

Digital Designer, Backend and Frontend developer from Sweden with experience in usability.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade