Linux under Golang+bee Environment installation

Source: Internet
Author: User

Download Individual program installation packages

    1. Golang installation package Address: Https://www.golangtc.com/download

    2. Beego installation package Address: Https://github.com/astaxie/beego

    3. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.