$ git clone https://github.com/nsqio/nsq $GOPATH/src/github.com/nsqio/nsq $ cd $GOPATH/src/github.com/nsqio/nsq $ dep ensure
修改makefile,主要指定目标机系统平台,并指定gcc编译器
$ make
交叉编译nsq
原文:https://www.cnblogs.com/lightblack/p/12616808.html