配置 beego 环境变量 ( -bash: bee: command not found)

beego 环境变量需要配置在 ~/.bashrc ,而我在配置了 /etc/profile 不生效
配置在 /etc/profile 然后执行:

go get github.com/astaxie/beegogo get github.com/beego/bee

会报错:-bash: bee: command not found
正确方式,将环境变量配置在 ~/.bashrc:
vim ~/.bashrcexport GOPATH=/root/workspace/beego/# beego的项目路径(工作目录) export GOROOT=/usr/local/go# go的安装路径

【配置 beego 环境变量 ( -bash: bee: command not found)】保存后
source ~/.bashrc

go get github.com/astaxie/beegogo get github.com/beego/bee

bee

这时就安装成功了

    推荐阅读