臨時目錄: /opt/ali_crp_duan_tmp/packagegit
腳本目錄: /opt/ali_crp_duan_tmp/deploy.shbash
#!/bin/bash cd /opt/ali_crp_duan_tmp/package tar -zxf package.tgz cp -rf ./duan*.git/WebContent/* /alidata/www/zblog/duan rm -rf /opt/ali_crp_duan_tmp/package/* chmod -R 777 /alidata/www/zblog/ /etc/init.d/httpd restart