蜜蜂不可执行

时间:2017-06-22 09:11:50

标签: go beego

使用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

1 个答案:

答案 0 :(得分:0)

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

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