If you don't have homebrew installed - get homebrew here
Then run: brew install elasticsearch
Update the elasticsearch configuration file in /usr/local/etc/elasticsearch/elasticsearch.yml
.
Set the value below to false:
discovery.zen.ping.multicast.enabled: false #(it's true by default)
Other sources say to use a removed brew services
command. You get it via brew tap gapple/services
. Then you're supposed to run brew services start <package-to-start>
.
If brew services start elasticsearch
doesn't work for you, check the instructions when you run brew info elasticsearch
.
Mine says:
To have launchd start elasticsearch at login:
ln -sfv /usr/local/opt/elasticsearch/*.plist ~/Library/LaunchAgents
Then to load elasticsearch now:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist
Or, if you don't want/need launchctl, you can just run:
elasticsearch --config=/usr/local/opt/elasticsearch/config/elasticsearch.yml
Hi @rawaludin, @boutell and All,
I was getting the
Connection Refused Issue
too.I checked and there is a bit more to the issue. In my case,
I had nothing running on port 9200.
So, since I need this to work,
I dove from outer space into this rabbit whole
. 😜Error
Did a check
on my mac and it wasn't running?
So checked homebrew
and restarted the service...
Everything checked out with Homebrew, but still not working...
Looking Deeper,
I located the file to run manually
Running this manually, I got a seemingly
hidden
error.Googled it and found the bug report. I left a comment on the PR.
Lastly,
I tried to update this manually myself, trying this but it didn't work:
As a work around
Just for now to get this to run as I need to run locally for my own development.
$ cd ~/Downloads/elasticsearch-6.3.2 && nohup bin/elasticsearch &>/dev/null &
Sharing the knowledge!
Cheers!
JayRizzo