Skip to content

Instantly share code, notes, and snippets.

@rubys
Created April 28, 2016 20:12
Show Gist options
  • Save rubys/81714444ef71496e495efb9e74a6a4e8 to your computer and use it in GitHub Desktop.
Save rubys/81714444ef71496e495efb9e74a6a4e8 to your computer and use it in GitHub Desktop.
# From a fresh install of Ubuntu 16.04:
sudo apt-get install elasticsearch
# After that, the following should work but doesn't:
sudo /bin/systemctl daemon-reload
sudo /bin/systemctl enable elasticsearch.service
sleep 10
curl http://localhost:9200/
# Despite that, the following does work:
sudo -u elasticsearch /usr/share/elasticsearch/bin/elasticsearch &
sleep 10
curl http://localhost:9200/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment