-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2.优化启动脚本,设置启动位置变量 3.增加停止脚本 4.优化nginx.pid残留致使启动后认为nginx已启动问题
- Loading branch information
1 parent
2769108
commit 9aa1f10
Showing
8 changed files
with
39 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,4 @@ hs_err_pid* | |
/reverse-proxy.iml | ||
/target/ | ||
/.idea/ | ||
/nginx/logs/nginx.pid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
@echo off | ||
start javaw -Xms300m -Xmx300m -XX:CompressedClassSpaceSize=256M -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=256m -jar reverse-proxy-1.0.0-SNAPSHOT.jar --spring.config.location=application.yml --basepath=%~dp0 | ||
set BASEPATH=%~dp0 | ||
set PIDFILE=%BASEPATH%nginx\logs\nginx.pid | ||
if exist %PIDFILE% ( | ||
del %PIDFILE% | ||
) | ||
set JAR=reverse-proxy.jar | ||
set JVM_ARGS=-Xms300m -Xmx300m -XX:CompressedClassSpaceSize=256M -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=256m | ||
start javaw %JVM_ARGS% -jar %JAR% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@echo off | ||
for /f "tokens=1" %%i in ('jps -l ^| findstr reverse-proxy.jar') do ( | ||
taskkill /f /pid %%i /t | ||
) | ||
set PIDFILE=%~dp0nginx\logs\nginx.pid | ||
if exist %PIDFILE% ( | ||
del %PIDFILE% | ||
) |