matryer / goblueprints

Source code for Go Programming Blueprints
1.48k stars 356 forks source link

chapter 5: For nsq on OSX, need to turn on filesharing #59

Closed aastein closed 6 years ago

aastein commented 6 years ago

The steps listed in chapter 5 will result in nsq using a hostname like Your-MacBook.local

If the Bonjour service is not enabled, the consumer and nsq_tail will not be able to connect to nsqdlookup

Fix: to fix this, filesharing can be turned on in the OS

aastein commented 6 years ago

Only opened this so the issue and a fix is documented for others to see.

denis-trofimov commented 4 years ago

I used this way to workaround https://nsq.io/overview/quick_start.html I have no idea about why all bonjour sharing options on my Mac are off, and I am new to OSX. I specified IP address for a nsqd:

nsqd --lookupd-tcp-address=127.0.0.1:4160

This was sufficient to make chapter 5 program twittervotes working.