1. 變量31Please respect copyright.PENANAtT5AdGK9JP
app=buda31Please respect copyright.PENANAEpfGl6eoLD
docs_dir=/home/buda/code/$app31Please respect copyright.PENANAiRveWuVgcR
cd $docs_dir
2. 時間31Please respect copyright.PENANAP8vFWqlfy6
deploy_time=$(date "+%Y-%m-%d.%H_%M_%S")
3. 命令行參數31Please respect copyright.PENANAsWwMMRGdEc
$1 $2 ...
4. 註釋31Please respect copyright.PENANAmBGOox0u1D
# prepare files
5. 在遠程server上運行命令31Please respect copyright.PENANAGObt90s10C
ssh root@server.ip << EOF31Please respect copyright.PENANAhWAY5Vg9iC
systemctl stop $app31Please respect copyright.PENANAFbZE2TaBpv
EOF
31Please respect copyright.PENANA0DF4g9SS8E
如果您對C語言編程、網站開發、Vue, Git, Linux, Shell感興趣,邀請您加入淨明創建的「Linux + C語言 + Vue + Git 網站開發技術學習交流微信羣」,請加淨明的微信(si_jinmin)以便拉您進羣。