蜜蜂不可执行

bee is not executable

使用 ubuntu15.go 得到 github.com/beego/bee

root@hao:/var/www/go/bin# ls
bee
root@hao:/var/www/go/bin# bee
未找到 'bee' 命令.(Bee command not found)

简介:

export GOPATH=/var/www/go
export GOROOT=/usr/local/go
export PATH=$GOROOT/bin:$PATH

首先检查您的二进制文件是否可执行 (运行 ls -l) and check that "x" is part of the permission of your user (if you're not sure, just runchmod +x bee)

其次,要在 unix 中执行二进制文件,您应该键入 ./bee