1.进入当前目录:cd /d %~dp0
@echo off
echo 开始打开nginx...
cd /d %~dp0
start nginx
echo ...恭喜,nginx打开成功了
pause
2.打开/关闭windows服务
sc stop WebImageService
sc start WebImageService
3.等待一定时间再启动
cd /d %~dp0
start 1-redis启动&ping localhost -n 2
start 4-base基础服务-02&ping localhost -n 2
start 5-basemanager基础服务管理&ping localhost -n 20
start 6-efilmApi电子胶片服务端-01&ping localhost -n 2
exist
4.复制指令和多线程可靠复制
net stop efilmApi
xcopy %WORKSPACE%\ElectroFilm-web-api\target\efilmApi.jar D:\soft\8099_efilmApi\ /y
net start efilmApi
net stop nodecloudpacs.exe
d:
ROBOCOPY %WORKSPACE% D:\soft\8092_node_cloudpacsUI\cloudpacs /E /MT:10
cd D:\soft\8092_node_cloudpacsUI\cloudpacs
npm install
5.解压、删除、指令
net stop basemanager
d:
rd /s /q D:\soft\webapp\basemanager
xcopy %WORKSPACE%\BaseSys-web-manager\target\basemanager.war D:\soft\webapp\basemanager\ /y
cd D:\soft\webapp\basemanager\
jar xf basemanager.war
del basemanager.war
net start basemanager
6.修改文件名称指令
net stop scheduleMobile
d:
rd /s /q D:\soft\8112_apache-tomcat-8.0.47-scheduleMobile\webapps\scheduleMobile
xcopy %WORKSPACE%\target\scheduleMobile-0.0.1-SNAPSHOT.war D:\soft\8112_apache-tomcat-8.0.47-scheduleMobile\webapps\scheduleMobile\ /y
cd D:\soft\8112_apache-tomcat-8.0.47-scheduleMobile\webapps\scheduleMobile\
ren scheduleMobile-0.0.1-SNAPSHOT.war scheduleMobile.war
jar xf scheduleMobile.war
del scheduleMobile.war
net start scheduleMobile
网友评论