1. 變量46Please respect copyright.PENANAw0VIgH3yfY
app=buda46Please respect copyright.PENANAbY7OLAyc33
docs_dir=/home/buda/code/$app46Please respect copyright.PENANATPpIkxOIQu
cd $docs_dir
2. 時間46Please respect copyright.PENANAtED29ygchx
deploy_time=$(date "+%Y-%m-%d.%H_%M_%S")
3. 命令行參數46Please respect copyright.PENANAAOWYLHTLrN
$1 $2 ...
4. 註釋46Please respect copyright.PENANAZsuNS5Ejre
# prepare files
5. 在遠程server上運行命令46Please respect copyright.PENANAGofelPwk44
ssh root@server.ip << EOF46Please respect copyright.PENANAVlRGCjfV7B
systemctl stop $app46Please respect copyright.PENANAMpPdSxYhtj
EOF
46Please respect copyright.PENANAwDYfvfr7VM
如果您對C語言編程、網站開發、Vue, Git, Linux, Shell感興趣,邀請您加入淨明創建的「Linux + C語言 + Vue + Git 網站開發技術學習交流微信羣」,請加淨明的微信(si_jinmin)以便拉您進羣。