1. 變量59Please respect copyright.PENANA8x9KAlQyfR
app=buda59Please respect copyright.PENANAISIbp6x2cb
docs_dir=/home/buda/code/$app59Please respect copyright.PENANA89hWdfcj4B
cd $docs_dir
2. 時間59Please respect copyright.PENANAQ4n0inF5bl
deploy_time=$(date "+%Y-%m-%d.%H_%M_%S")
3. 命令行參數59Please respect copyright.PENANA62yWf6q8S0
$1 $2 ...
4. 註釋59Please respect copyright.PENANAycVJ8sWFQA
# prepare files
5. 在遠程server上運行命令59Please respect copyright.PENANANhQPJqWpWu
ssh [email protected] << EOF59Please respect copyright.PENANACHhftPbP9T
systemctl stop $app59Please respect copyright.PENANAyZvhQH2YJj
EOF
59Please respect copyright.PENANAx5qmICYTxJ
如果您對C語言編程、網站開發、Vue, Git, Linux, Shell感興趣,邀請您加入淨明創建的「Linux + C語言 + Vue + Git 網站開發技術學習交流微信羣」,請加淨明的微信(si_jinmin)以便拉您進羣。