1.源码安装nsq
go get github.com/tools/godep go get github.com/bmizerany/assert godep get github.com/bitly/nsq/...
godep执行之后,如果报错:
godep: outdated Godeps missing source code This dependency list was created with an old version of godep. To work around this, you have two options: 1. Run ‘godep restore‘, and try again. 2. Ask the maintainer to switch to a newer version of godep, then try again with the updated package.
解决办法
cd src/github.com/bitly/nsq rm GoDeps godep save ./... godep get github.com/bitly/nsq/...
git上更新到到godeps文件是旧版,用godep重新生成一次就好了,生成出来的时一个文件夹。。。
这个时候看$GOPATH/bin下肯定已经有nsq的各种文件了
首先启动个nsqlookupd吧~
时间: 2024-10-13 11:50:03