1. 變量65Please respect copyright.PENANAd90RGry5gV
app=buda65Please respect copyright.PENANA0uDE8LHzbt
docs_dir=/home/buda/code/$app65Please respect copyright.PENANACdB380VXUY
cd $docs_dir
2. 時間65Please respect copyright.PENANAX5Pg9C8YZB
deploy_time=$(date "+%Y-%m-%d.%H_%M_%S")
3. 命令行參數65Please respect copyright.PENANAgbiXeNHroX
$1 $2 ...
4. 註釋65Please respect copyright.PENANAVGJgwbm8pi
# prepare files
5. 在遠程server上運行命令65Please respect copyright.PENANAHquhK5bdWt
ssh [email protected] << EOF65Please respect copyright.PENANAieOHGSlUSn
systemctl stop $app65Please respect copyright.PENANAYSjju7W407
EOF
65Please respect copyright.PENANAICo4wLBaNz
如果您對C語言編程、網站開發、Vue, Git, Linux, Shell感興趣,邀請您加入淨明創建的「Linux + C語言 + Vue + Git 網站開發技術學習交流微信羣」,請加淨明的微信(si_jinmin)以便拉您進羣。