elasticsearch not accessible on port 9200 on Homestead
Hi,
I would like to experiment with elasticsearch. But I can not get it working on my Homestead vagrant box.
What did I do:
- Updated my Homestead version, it is version 6.3.0 now.
- Added "elasticsearch: 6" to the Homestead.yaml file.
- Runned vagrant up --provision
After this steps, elasticsearch was not installed. I found the homestead install script on github and run it. https://github.com/laravel/homestead/blob/master/scripts/install-elasticsearch.sh
Elasticsearch is installed now, if i run "sudo /etc/init.d/elasticsearch status" I get:
● elasticsearch.service - LSB: Starts elasticsearch
Loaded: loaded (/etc/init.d/elasticsearch; bad; vendor preset: enabled)
Active: active (exited) since Sat 2018-10-20 20:35:47 UTC; 8min ago
Docs: man:systemd-sysv-generator(8)
Process: 1401 ExecStart=/etc/init.d/elasticsearch start (code=exited, status=0/SUCCESS)
Tasks: 0
Memory: 0B
CPU: 0
Oct 20 20:35:46 homestead systemd[1]: Starting LSB: Starts elasticsearch...
Oct 20 20:35:47 homestead systemd[1]: Started LSB: Starts elasticsearch.
But if I run: curl 'http://localhost:9200/?pretty' I get: curl: (7) Failed to connect to localhost port 9200: Connection refused
I did search for log files in /var/log/elasticsearch, but the directory is empty. Is this the right path?
So I get the error I get: curl: (7) Failed to connect to localhost port 9200: Connection refused
what am I missing?
Please or to participate in this conversation.