写了一个bat文件 @echo off set CGO_ENABLED=0 set GOOS=linux set GOPACH=amd64 go build set CGO_ENABLED=0 关闭CGO