CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -installsuffix cgo -o installer cmd/main.go:运行安装
scp installer root@10.31.0.0:/root: 推到服务器上跑
CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -installsuffix cgo -o installer cmd/main.go:运行安装
scp installer root@10.31.0.0:/root: 推到服务器上跑
本文标题:将程序推到其他服务器上运行
本文链接:https://www.haomeiwen.com/subject/pcgxrltx.html
网友评论