1. 變量61Please respect copyright.PENANAi2lTPDK6YU
app=buda61Please respect copyright.PENANAg67nJrmJSO
docs_dir=/home/buda/code/$app61Please respect copyright.PENANAU11H2tiynI
cd $docs_dir
2. 時間61Please respect copyright.PENANAbEGWsiEHdO
deploy_time=$(date "+%Y-%m-%d.%H_%M_%S")
3. 命令行參數61Please respect copyright.PENANAJU3tLGY3Cg
$1 $2 ...
4. 註釋61Please respect copyright.PENANAucxhlWDSDX
# prepare files
5. 在遠程server上運行命令61Please respect copyright.PENANARWqeKP80gH
ssh [email protected] << EOF61Please respect copyright.PENANABp6NPHSR3O
systemctl stop $app61Please respect copyright.PENANAs2WTSTtV1U
EOF
61Please respect copyright.PENANAgHlm8AhvSC
如果您對C語言編程、網站開發、Vue, Git, Linux, Shell感興趣,邀請您加入淨明創建的「Linux + C語言 + Vue + Git 網站開發技術學習交流微信羣」,請加淨明的微信(si_jinmin)以便拉您進羣。