Windows中go项目编译成linux可执行文件 SET CGO_ENABLED=0set GOARCH=amd64set GOOS=linuxgo build main.go 若要在linu中执行 还要赋予权限chmod 777 文件名