Created
April 28, 2016 20:12
-
-
Save rubys/81714444ef71496e495efb9e74a6a4e8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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