開門見山,首先,我的服務器已經(jīng)安檢了應有的軟件, 如:gift,golang的環(huán)境,而且環(huán)境變量都是好的!


安裝
beego 包含一些示例應用程序以幫您學習并使用 beego 應用框架。
您需要安裝 Go 1.1+ 以確保所有功能的正常使用。
你需要安裝或者升級 Beego 和?Bee?的開發(fā)工具:
$ go get -u github.com/astaxie/beego
$ go get -u github.com/beego/bee
下面是安裝的時候出現(xiàn)的錯誤
# cd .; git clone https://github.com/astaxie/beego /alidata/www/go_workspace/src/github.com/astaxie/beego
Initialized empty Git repository in /alidata/www/go_workspace/src/github.com/astaxie/beego/.git/
error:? while accessing https://github.com/astaxie/beego/info/refs
fatal: HTTP request failed
package github.com/astaxie/beego: exit status 128
如果在網(wǎng)絡上面都沒法解決,最笨的辦法就是下載源碼安裝,
下載鏈接:https://github.com/astaxie/beego
? ? ? ? ? ? ? ? ? https://github.com/beego/bee


把兩個源碼放在下面對應的目錄
src/github.com/astaxie/beego/
src/github.com/beego/bee/

然后執(zhí)行命令:
go install github.com/astaxie/beego
go install src/github.com/beego/bee
創(chuàng)建項目如下:


/alidata/www/go_workspace/src/beego/bee
/alidata/www/go_workspace/src/github.com/astaxie/beego
/alidata/www/go_workspace/src/github.com/beego/bee
export GOROOT=/alidata/server/go
export GOBIN=$GOROOT/bin
export PATH=$PATH:$GOBIN
export GOPATH=/alidata/www/go_workspace/
go install? github.com/astaxie/beego
go install? github.com/beego/bee
nohup ./go_zhanj163 &