Download Individual program installation packages
Golang installation package Address: Https://www.golangtc.com/download
Beego installation package Address: Https://github.com/astaxie/beego
Bee Tool installation package address: Https://github.com/beego/bee
Installation Golang development environment
Tar XF go1.9.2.linux-amd64.tar.gz
MV go/usr/local/
In/etc/profile, add the following three lines to the last:
Export path= $PATH:/usr/local/go/bin
Export Gopath= $HOME/workspace
Export path= $PATH: $GOPATH/bin
Source/etc/profile #是环境变量生效
Installing the BEEGO Environment
Official recommendation to complete the automatic installation via the command go get github.com/astaxie/beego, but I do the Times error on the local virtual machine, error such as:
query for a long time, still can not solve, there is no way to install only manually:
First download the source package and unzip
Unzip Beego-master.zip #解压
MV Beego-master Workspace/src/github.com/astaxie/beego #移动到工作目录中
Go install Github.com/astaxie/beego #安装
Installing the Bee Tool
Official recommended to use the command go get Github.com/beego/bee to quickly install (this author can not, or report the above error , only manual execution, or old kind, three steps!!!!) )
Unzip Bee-master.zip
MV Bee-master Workspace/src/github.com/beego/bee
Go Install Github.com/beego/bee
Test
Bee New P1
Bee Run P1
Now you can access it through your browser.
Linux under Golang+bee Environment installation