执行命令
brew install nsq
效果如下
==> Downloading https://homebrew.bintray.com/bottles/nsq-1.1.0.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Pouring nsq-1.1.0.mojave.bottle.tar.gz
==> Caveats
To have launchd start nsq now and restart at login:
brew services start nsq
Or, if you don't want/need a background service you can just run:
nsqd -data-path=/usr/local/var/nsq
==> Summary
/usr/local/Cellar/nsq/1.1.0: 15 files, 71.5MB
安装成功