Monday, September 4, 2017

ElasticSearch not running on localhost:9200 after apt-get install

Leave a Comment

I installed elasticsearch from Ubuntu repositories using

sudo apt-get install elasticsearch 

After that I assumed the service would be setup and running, but when I opened localhost:9200 it was not running. Is there additional configuration or command that I need to run?

Edit: I also ran sudo systemctl start elasticsearch.service (ubuntu is on systemd) but no effect.

2 Answers

Answers 1

Elasticsearch is not started automatically after installation. You need to enable elasticsearch explicitely, see https://www.elastic.co/guide/en/elasticsearch/reference/5.5/deb.html

Answers 2

Run systemctl status elasticsearch if you're not getting any logs in /var/log/elasticsearch. You can scroll through this output via f (for forward) and b (for backward) as necessary.

It's possible that you don't have enough memory (RAM) available.

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment