go
go安装go
go 安装bee
设置代理地址: https://goproxy.cn
go env -w GOPROXY=https://goproxy.cn
查看bee版本
bee -version
查看不到:
command not found: bee
发现找不到相应的命令,这时候可以考虑这么做,新增环境变量
vim ~/.bash_profile
export GOPATH=/Users/xxxxxx/go
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOBIN
执行以下命令使得环境变量生效
source ~/.bash_profile
在查看就好了
bee version
2024/02/29 18:11:21 INFO ▶ 0001 Getting bee latest version...
2024/02/29 18:11:22 WARN ▶ 0002 Update available 1.12.0 ==> 2.1.0
2024/02/29 18:11:22 WARN ▶ 0003 Run `bee update` to update
2024/02/29 18:11:22 INFO ▶ 0004 Your bee are up to date
______
| ___ \
| |_/ / ___ ___
| ___ \ / _ \ / _ \
| |_/ /| __/| __/
\____/ \___| \___| v1.12.0
├── Beego : Beego is not installed. Please do consider installing it first: https://github.com/astaxie/beego
├── GoVersion : go1.22.0
├── GOOS : darwin
├── GOARCH : amd64
├── NumCPU : 8
├── GOPATH : /Users/meng/go
├── GOROOT : /usr/local/go
├── Compiler : gc
└── Date : Thursday, 29 Feb 2024
安装bee
go install github.com/beego/bee@latest