##官网安装教程
Beego 快速入门安装教程
我在安装官网给的安装方法安装的时候遇到了点小问题,于是自己将我安装的步骤记录一下。
1.安装Go环境
2.安装或者升级Beego和Bee的开发工具
$ go get -u github.com/astaxie/beego
$ go get -u github.com/beego/bee
3.添加环境变量
$ open ~/.bash_profile
在打开的文件内输入以下环境变量进行配置
export GOPATH=${HOME}/go
export PATH=${PATH}:${GOPATH}/bin
然后 source ~/.bash_profile
4. 在终端输入 bee 和 go 看是否都安装成功了
go 安装成功
jiangbiaodeMacBook-Pro:~ jiangbiao$ go
Go is a tool for managing Go source code.
Usage:
go command [arguments]
The commands are:
build compile packages and dependencies
clean remove object files and cached files
doc show documentation for package or symbol
env print Go environment information
bug start a bug report
fix up