1. 變量64Please respect copyright.PENANA4TqLNmGnHj
app=buda64Please respect copyright.PENANAqzXAsSJQsl
docs_dir=/home/buda/code/$app64Please respect copyright.PENANAkhpGPew7f2
cd $docs_dir
2. 時間64Please respect copyright.PENANAHOL0o6yFUj
deploy_time=$(date "+%Y-%m-%d.%H_%M_%S")
3. 命令行參數64Please respect copyright.PENANAeOOjyR4sYY
$1 $2 ...
4. 註釋64Please respect copyright.PENANANN7ilZEibk
# prepare files
5. 在遠程server上運行命令64Please respect copyright.PENANA2xkTHaGJ0q
ssh root@server.ip << EOF64Please respect copyright.PENANAPMIimPNgF0
systemctl stop $app64Please respect copyright.PENANA1gaS6VFyXd
EOF
64Please respect copyright.PENANADy8qnn6aaI
如果您對C語言編程、網站開發、Vue, Git, Linux, Shell感興趣,邀請您加入淨明創建的「Linux + C語言 + Vue + Git 網站開發技術學習交流微信羣」,請加淨明的微信(si_jinmin)以便拉您進羣。