打包上传com目录为com.zip,之后将com.zip放到tmp目录下执行该脚本即可

1
2
3
4
5
#!/bin/bash
mv /tmp/com.zip /usr/weaver/ecology/classbean
unzip -o /usr/weaver/ecology/classbean/com.zip -d /usr/weaver/ecology/classbean
sh /usr/weaver/Resin/bin/resin.sh restart
tail -f /usr/weaver/Resin/log/stdout.log