1.源码安装nsq
go get github.com/tools/godepgo get github.com/bmizerany/assertgodep get github.com/bitly/nsq/...
godep执行之后,如果报错:
godep: outdated Godeps missing source codeThis 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/nsqrm GoDepsgodep save ./...godep get github.com/bitly/nsq/...
git上更新到到godeps文件是旧版,用godep重新生成一次就好了,生成出来的时一个文件夹。。。
这个时候看$GOPATH/bin下肯定已经有nsq的各种文件了
首先启动个nsqlookupd吧~