mac version是10.13.3。在mac中安装nsq,直接使用brew install即可。在命令行中,执行如下命令即可:
$ brew install nsq
执行时的信息显示如下:
Updating Homebrew... ==> Auto-updated Homebrew! Updated 3 taps (homebrew/core, homebrew/services, caskroom/cask). ==> New Formulae eccodes fork-cleaner wireguard-go ==> Updated Formulae imagemagick ✔ awscli dbxml fabric git-ftp imagemagick@6 kubernetes-helm loudmouth mpc osm2pgrouting pegtl pound schismtracker tippecanoe wtf kubernetes-cli ✔ babeld dcd fdroidserver goenv inetutils libbi lxc msgpack osquery petsc proguard skipfish todoman xqilla ace bettercap debianutils feh grpc ipfs libgphoto2 maxwell nano pam-u2f pgroonga proxytunnel snakemake traefik xsv annie cake doitlive fn gtksourceview@4 iso-codes libidn mcabber neomutt paps pidgin raine solr unrar you-get aptly citus dscanner folly gx-go jenkins libpqxx mercurial node-build passenger pilosa reminiscence sops vtk aria2 clojure elektra freediameter heroku jhiccup libqalculate metabase node@8 pcb pipenv rocksdb source-to-image webpack armadillo dartsim ethereum gauge hesiod knot libswiften mikutter nsd pdal poppler rsyslog spigot winetricks aws-sdk-cpp dash faas-cli getdns hopenpgp-tools kompose libu2f-host [email protected] open-mpi pdsh postgrest s-nail spring-roo wireguard-tools ==> Downloading https://homebrew.bintray.com/bottles/nsq-1.0.0_1.high_sierra.bottle.tar.gz ######################################################################## 100.0% ==> Pouring nsq-1.0.0_1.high_sierra.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
至此,安装完毕。