重點:
需要靜態鏈接編譯golang程序。
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main .
參考:
http://www.tuicool.com/articles/a6VFVr
重點:
需要靜態鏈接編譯golang程序。
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main .
參考:
http://www.tuicool.com/articles/a6VFVr