This is a creation in Article, where the information may have evolved or changed.
Just start with go and Beego, really still a lot of don't understand ~ hope to see friends have help ~
My environment: CentOS 6.3x86_64
1. I created a user zww (Useradd zww) on the machine, log in Zww (su zww)
2. Download golang:https://golang.org/dl/
depending on the type of my system, select Download:go1.4.2.linux-amd64.tar.gz
3. Unzip (I unzipped directly in the ~/directory): Tar zxvf go1.4.2.linux-amd64.tar.gz
4. Set Environment variables:
VI ~/.BASHRC
Add to:
Export goroot= $HOME/go
Export path= $PATH: $GOROOT/bin
5. Execute Source ~/.BASHRC
6. Installing Beego
Create a new folder first: MkDir ~/gopath
Set environment variables: VI ~/.BASHRC
Add: Export gopath= $HOME/gopath
SOURCE ~/.BASHRC
Perform:
$ go get github.com/astaxie/beego$ go get github.com/beego/bee
Set environment variables: VI ~/.BASHRC
Add: Export path= $PATH: $GOPATH/bin
SOURCE ~/.BASHRC
7. Go and Beego are all right now.
Test: CD $GOPATH/SRC
Bee New Hello
ok~