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