🔖 bat script

pull/2/head
Zhang Peng 2018-07-04 23:15:42 +08:00
parent c09b291761
commit 5fa1c935e8
1 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,21 @@
rem -----------------------------------------------------------------------------
rem Demo02 - 负载均衡配置Nginx/demos/nginx-1.14.0/conf/demos/demo02.conf
rem 1. 启动 Nginx
rem 2. 启动三个 JavaApp访问地址分别为
rem localhost:9011
rem localhost:9012
rem localhost:9013
rem -----------------------------------------------------------------------------
@echo off
echo ">>>> 1. Start nginx"
cd "../nginx-1.14.0"
call nginx-start.bat
echo ">>>> 2. Start 3 java app: localhost:9011/localhost:9012/localhost:9013"
cd "../javaapp"
start /min java -Dtomcat.connector.port=9011 -cp "target/JavaWebApp/WEB-INF/classes;target/JavaWebApp/WEB-INF/lib/*" io.github.dunwu.app.Main
start /min java -Dtomcat.connector.port=9012 -cp "target/JavaWebApp/WEB-INF/classes;target/JavaWebApp/WEB-INF/lib/*" io.github.dunwu.app.Main
start /min java -Dtomcat.connector.port=9013 -cp "target/JavaWebApp/WEB-INF/classes;target/JavaWebApp/WEB-INF/lib/*" io.github.dunwu.app.Main
pause