go生成linux可运行文件
go生成linux可运行文件安装好golang,且已经配置好了GOROOT,GOPATHset GOARCH=amd64set GOOS=linuxgo build xxx.go赋予权限chmod 777 xxx.go执行./xxx
·
go生成linux可运行文件
安装好golang,且已经配置好了GOROOT,GOPATH
set GOARCH=amd64
set GOOS=linux
go build xxx.go
赋予权限
chmod 777 xxx
执行
./xxx
更多推荐
已为社区贡献1条内容
所有评论(0)