欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

安装beego框架

程序员文章站 2024-03-13 17:22:39
...

首先先安装go环境

没有安装 点击 去安装

安装完后命令行运行 go env 会出现下面内容  

安装beego框架

其中gopath是配置项目目录  goroot是go环境安装地址  如果修改地址的话只需要修改gopath就行

接下来安装beego框架

配置好环境变量后执行

go get github.com/astaxie/beego

go get github.com/astaxie/beego

此时会在配置的gopath下面生成几个目录

如果报错了

$go get -u github.com/beego/bee
# cd .; git clone https://github.com/beego/bee /Users/lipeng/www/go/src/github.com/beego/bee
Cloning into '/Users/lipeng/www/go/src/github.com/beego/bee'...
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
package github.com/beego/bee: exit status 128

执行

$git config --global http.sslVerify false
$go get -u github.com/beego/bee

 

 

 

相关标签: beego