nginx-tutorial/demos/scripts/demo01-start.bat

17 lines
488 B
Batchfile
Raw Normal View History

2018-07-04 22:55:47 +08:00
rem -------------------------------------------------
rem 启动 Demo1
rem 1. 启动 Nginx
2018-07-05 10:07:17 +08:00
rem 2. 启动一个 JavaApp访问地址为localhost:9010
2018-07-04 22:55:47 +08:00
rem -------------------------------------------------
@echo off
echo ">>>> 1. Start nginx"
cd "../nginx-1.14.0"
call nginx-start.bat
2018-07-05 10:07:17 +08:00
echo ">>>> 2. Start javaapp - localhost:9010"
2018-07-04 22:55:47 +08:00
cd "../javaapp"
2018-07-11 17:23:28 +08:00
java -Dtomcat.connector.port=9010 -cp "target/JavaWebApp/WEB-INF/classes;target/JavaWebApp/WEB-INF/lib/*" io.github.dunwu.Main
2018-07-04 22:55:47 +08:00
pause