Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update quickstart.md #951

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions zh-CN/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ beego 包含一些示例应用程序以帮您学习并使用 beego 应用框架
您需要安装 Go 1.1+ 以确保所有功能的正常使用。

你需要安装或者升级 Beego 和 [Bee](http://beego.vip/docs/install/bee.md) 的开发工具:

$ go get -u github.com/beego/beego/v2
$ go get -u github.com/beego/bee/v2

# 请先确保 GOBIN 环境变量已设置,bee执行命令将安装在 GOBIN 环境变量指向的路径里。
# 设置命令(此命令依赖 GOPATH 环境变量):
$ echo 'export GOBIN="$GOPATH/bin"' >> ~/.profile 或者 ~/.zshrc, ~/.cshrc, 您所使用的sh对应的配置文件
$ echo $GOBIN
$ go get -u github.com/beego/bee/v2 && ls -l $GOBIN/bee

*如果go get时出现`package github.com/beego/beego/v2: cannot find package "github.com/beego/beego/v2" in any of:`的报错,请先`export GO111MODULE=on`*

为了更加方便的操作,请将 `$GOPATH/bin` 加入到你的 `$PATH` 变量中。请确保在此之前您已经添加了 `$GOPATH` 变量。
Expand Down