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