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

21 lines
517 B
Batchfile
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

@echo off
rem -------------------------------------------------
rem 启动 Demo1
rem 1. 启动 Nginx
rem 2. 启动一个 JavaApp访问地址为localhost:9010
rem -------------------------------------------------
echo ">>>> 1. Start nginx"
pushd %~dp0..\nginx-1.14.0
call nginx-start.bat
popd
echo ">>>> 2. Start javaapp - localhost:9010"
pushd %~dp0..\javaapp
call java -Dtomcat.connector.port=9010 -cp "target/JavaWebApp/WEB-INF/classes;target/JavaWebApp/WEB-INF/lib/*" io.github.dunwu.Main
popd
pause