- #!/bin/bash
- # 停止服务
- sh /home/geo/geo-test/microarch_bg/system.sh stop
- # 删除原来文件
- rm -rf /home/geo/geo-test/microarch_bg/microarch_bg_system-0.0.1-SNAPSHOT.jar
- # 移出来
- mv /home/geo/geo-test/microarch_bg/target/microarch_bg_system-0.0.1-SNAPSHOT.jar /home/geo/geo-test/microarch_bg/microarch_bg_system-0.0.1-SNAPSHOT.jar
- # 启动服务
- sh /home/geo/geo-test/microarch_bg/system.sh start
|