Using ubuntu15.go get github.com/beego/bee
root@hao:/var/www/go/bin# ls
bee
root@hao:/var/www/go/bin# bee
未找到 'bee' 命令.(Bee command not found)
profile:
export GOPATH=/var/www/go
export GOROOT=/usr/local/go
export PATH=$GOROOT/bin:$PATH
Using ubuntu15.go get github.com/beego/bee
root@hao:/var/www/go/bin# ls
bee
root@hao:/var/www/go/bin# bee
未找到 'bee' 命令.(Bee command not found)
profile:
export GOPATH=/var/www/go
export GOROOT=/usr/local/go
export PATH=$GOROOT/bin:$PATH
first check that your binary is executable (run ls -l) and check that "x" is part of the permission of your user (if you're not sure, just run
chmod +x bee)
Second, to execute a binary in unix you should type ./bee