学习笔记 Golang在Windows中编译成Linux可执行文件 在Windows PowerShell运行如下命令: $env:GOOS="linux" $env:CGO_ENABLED="0" $env:GOARCH="amd64"