只需要在命令行输入设置环境即可set CGO_ENABLED=0 set GOARCH=amd64 set GOOS=linux go build main.go 最后编辑于: 2024 年 11 月 19 日