一、安装go
1、下载go
All releases - The Go Programming Language
通过网盘分享的文件:分享的文件
链接: https://pan.baidu.com/s/1MCbo3k3otSoVdmIR4mpPiQ 提取码: hxgf

下载amd64.zip文件,然后解压到指定的路径

2、配置环境变量


需要新建两个环境变量配置:
- 一个是 GOROOT ,这个就是 Go 环境所在目录的配置。
- 另一个是 GOPATH ,这个是 Go项目的工作目录,你以后开发的代码就写在这个文件夹中。里面创建bin、src、pkg三个文件夹

方式一:然后将新建的GOROOT配置到 Path 这个环境变量中去,在系统变量中找到 Path,点击编辑->新建,输入%GOROOT%/bin,点击确定。并将所有母窗口的确定全部点下,确保环境变量生效。

方式二:直接创建GOBIN的环境变量。

3、验证
go version

二、安装beego

1、下载beego和bee文件
https://github.com/astaxie/beego
通过网盘分享的文件:分享的文件
链接: https://pan.baidu.com/s/1rM0NiL4X7cuisESLYra1Zw 提取码: 2fsh
2、将上面的文件下载完成之后放到go配置的src文件下


将上面的文件拷贝到如图的结构。
然后在bee文件夹下执行:go build,如下图,执行成功之后会生成bee.exe

生成bee.exe

将bee.exe移动到bin下面,如下图

3.验证
bee version

安装完成!