|
@@ -5,7 +5,7 @@ tags: Linux
|
|
cover: https://static.jqwei.com/blog/img/IMG_3461.PNG
|
|
cover: https://static.jqwei.com/blog/img/IMG_3461.PNG
|
|
categories: 运维处理
|
|
categories: 运维处理
|
|
---
|
|
---
|
|
-### 编译
|
|
|
|
|
|
+### Golang交叉编译
|
|
Mac 下编译 Linux 和 Windows 64位可执行程序
|
|
Mac 下编译 Linux 和 Windows 64位可执行程序
|
|
``` bash
|
|
``` bash
|
|
$ CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build main.go
|
|
$ CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build main.go
|