1、安装golang,go1.9.2.linux-amd64.tar.gz压缩包拷贝到/usr/local,解压即可
2、设置环境变量
export GOROOT=/usr/local/go
export PATH=$PATH:/usr/local/go/bin
#export PATH=$PATH:$GOROOT/bin
3、下载,编译用户工程
mkdir ~/gopath
export GOPATH=$HOME/gopath
go get github.com/gwuhaolin/livego
go build
原文地址:https://www.cnblogs.com/dong1/p/9196137.html
时间: 2024-10-10 05:40:25