go beego bee 相关问题

安装beego  安装bee工具git

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

问题github

src目录下执行浏览器

../bin/bee new beegonew
2019/04/04 17:08:48 ERROR    ▶ 0001 You need to set GOPATH environment variable
______
| ___ \
| |_/ /  ___   ___
| ___ \ / _ \ / _ \
| |_/ /|  __/|  __/
\____/  \___| \___| v1.10.0
2019/04/04 17:08:48 FATAL    ▶ 0002 GOPATH environment variable is not set or empty
缘由工具

用 echo $GOPATH
若是打印 /Users/chenbao/go/bin ;
对于 bee 来讲 你的 $GOPATH 才算设置好了,code

解决办法get

export GOPATH=你的工做路径  #最好用绝对地址,如:/Users/mac/go

 

../../bin/bee run   监听8080端口    浏览器访问 localhost:8080it

相关文章
相关标签/搜索