Microsoft Windows Internals, Fourth Edition is intended for advanced computer professionals (both developers and system administrators) who want to understand how the core components of the Microsoft Windows 2000, Windows XP, and Microsoft Windows S
Microsoft Windows Internals, Fourth Edition is intended for advanced computer professionals(both developers and system administrators) who want to understand how the core componentsof the Microsoft Windows 2000, Windows XP, and Microsoft Windows Ser
Windows PowerShell 2 For Dummies is an introductory guide to this relatively new and fascinating Windows scr ipting environment that’s revolutionizing the way programmers think about Windows scr ipting. Before Windows PowerShell 2, there was Windows
Writing Microsoft Windows Server 2003 Administrator's Pocket Consultant was a lot of fun—and a lot of work. As you'll see, Windows Server 2003 is very different from its predecessors and that meant a lot of research to ensure the book was as accurat
go windows平台安装包Go(又称 Golang)是 Google 的 Robert Griesemer,Rob Pike 及 Ken Thompson 开发的一种静态强类型、编译型语言。Go 语言语法与 C 相近,但功能上有:内存安全,GC(垃圾回收),结构形态及 CSP-style 并发计算。
背景
众所周知,go语言可打包成目标平台二进制文件是其一大优势,如此go项目在服务器不需要配置go环境和依赖就可跑起来。
操作
需求:打包部署到centos7
笔者打包环境:mac os
方法:进入main.go所在目录,输入如下命令,当前目录便会生成main的可执行文件
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build main.go
Windows平台打包到Linux执行不一样,需要输入如下命令
set CGO_ENABLED=0
set G