Go环境安装
设置GOPATH, GOGOOT,PATH环境变量
export GOROOT=/usr/local/go #设置为go安装的路径,有些安装包会自动设置默认的goroot
export GOPATH=$HOME/go #默认安装包的路径
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
https://blog.csdn.net/qq_41527782/article/details/83412078
https://blog.csdn.net/qq_15437667/article/details/80482035
https://studygolang.com/articles/13957?fr=sidebar
Git安装
go get 要用到git,
yum install git
https://blog.csdn.net/jsboy123/article/details/80617231
Beego安装
go get github.com/beego/bee
go get github.com/astaxie/beego
若上面第2个安装时,没反应。则继续以下操作:
vim /etc/hosts
192.30.253.113 github.com
151.101.185.194 github.global.ssl.fastly.net
上面是我设置的hosts,各位童鞋可以用IP查找工具来获取IP地址(github.com)设置hosts,速度杠杠的
https://blog.csdn.net/fly_520/article/details/81448930
Nginx安装
Nginx配置文件/etc/nginx/nginx.conf文件中配置域名,使用反向代理和beego配合。