#!/bin/bash echo "开始" rm -rf ./web_hgc_web ./web_hgc_web.tar.gz GOOS=linux GOARCH=amd64 go build -o web_hgc_web tar zvcf web_hgc_web.tar.gz web_hgc_web scp web_hgc_web.tar.gz root@172.104.166.87:/data/uzip ssh root@172.104.166.87 "/server/web_hgc/web/up_app.sh" rm -rf ./web_hgc_web ./web_hgc_web.tar.gz