nginx-tutorial/examples/scripts/demo03-start.bat

25 lines
1.1 KiB
Batchfile
Raw Normal View History

2018-10-12 18:31:56 +08:00
@echo off
2018-07-04 23:37:39 +08:00
rem -----------------------------------------------------------------------------
rem Demo03 - 网站有多个 webapp 的配置Nginx/demos/nginx-1.14.0/conf/demos/demo03.conf
rem 1. 启动 Nginx
rem 2. 启动三个 JavaApp访问地址分别为
rem localhost:9030/
2018-07-05 10:07:17 +08:00
rem localhost:9031/product
rem localhost:9032/user
2018-07-04 23:37:39 +08:00
rem -----------------------------------------------------------------------------
2018-10-12 18:31:56 +08:00
2018-07-04 23:37:39 +08:00
echo ">>>> 1. Start nginx"
2018-10-12 18:31:56 +08:00
pushd %~dp0..\nginx-1.14.0
2018-07-04 23:37:39 +08:00
call nginx-start.bat
2018-10-12 18:31:56 +08:00
popd
2018-07-04 23:37:39 +08:00
2018-07-05 10:07:17 +08:00
echo ">>>> 2. Start 3 java app: localhost:9030, localhost:9031/product, localhost:9032/user"
2018-10-12 18:31:56 +08:00
pushd %~dp0..\javaapp
2018-07-11 17:23:28 +08:00
start /min java -Dtomcat.connector.port=9030 -Dtomcat.context.path=/ -cp "target/JavaWebApp/WEB-INF/classes;target/JavaWebApp/WEB-INF/lib/*" io.github.dunwu.Main
start /min java -Dtomcat.connector.port=9031 -Dtomcat.context.path=/product -cp "target/JavaWebApp/WEB-INF/classes;target/JavaWebApp/WEB-INF/lib/*" io.github.dunwu.Main
start /min java -Dtomcat.connector.port=9032 -Dtomcat.context.path=/user -cp "target/JavaWebApp/WEB-INF/classes;target/JavaWebApp/WEB-INF/lib/*" io.github.dunwu.Main
2018-10-12 18:31:56 +08:00
popd
2018-07-04 23:37:39 +08:00
2018-10-12 18:31:56 +08:00
pause
2018-07-04 23:37:39 +08:00