1.beego 环境变量需要配置在 ~/.bashrc ,而我在配置了 /etc/profile 不生效
配置在 /etc/profile 然后执行:会报错:-bash: bee: command not found
2.将环境变量配置在 ~/.bashrc:
vim ~/.bashrc
export GOPATH=/root/workspace/beego/ # beego的项目路径(工作目录)
export GOROOT=/usr/local/go # go的安装路径
source ~/.bashrc
3.用go get安装
go get github.com/astaxie/beego
go get github.com/beego/bee
4.如果还是 bee bash: bee: command not found 请你把GOPATH/bin下的bee.exe 拷贝到 GOROOT/bin里面,也就是你的go语言环境变量的bin里面,然后运行 bee