13 lines
590 B
Batchfile
13 lines
590 B
Batchfile
set install_path=%~dp0
|
|
cd /d %install_path%
|
|
cd nginx
|
|
echo "开始启动前台服务nginx......."
|
|
nginx -s stop
|
|
taskkill /F /IM nginx.exe
|
|
start nginx.exe
|
|
cd ../
|
|
echo "开始启动后台服务......."
|
|
wmic process where "CommandLine Like '%%EMS_NEW-0.0.1-SNAPSHOT.war%%' and name='java.exe'" call terminate
|
|
ping 127.0.0.1 -n 2
|
|
java -Dfile.encoding=utf-8 -jar -Xms512m -Xmx2024m EMS_NEW-0.0.1-SNAPSHOT.war -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8011 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -XX:+HeapDumpOnOutOfMemoryError
|
|
cd %~dp0 |