1.配置環(huán)境變量
前提是配置好go環(huán)境
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin
beego庫(kù)安裝的位置泻仙,將來(lái)bee new projectname 會(huì)將項(xiàng)目自動(dòng)導(dǎo)入此目錄下對(duì)應(yīng)的src目錄下
export GOPATH=~/Documents/GoProjects/gopath
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOPATH/bin
2.安裝(注意這里安裝沒(méi)有進(jìn)度條)
$ go get -u github.com/astaxie/beego
$ go get -u github.com/beego/bee