Skip to content

Commit

Permalink
fix:Port modification in the configuration file does not take effect …
Browse files Browse the repository at this point in the history
…in windows.(alibaba#11399)
  • Loading branch information
DiligenceLai committed Dec 18, 2023
1 parent 736327b commit 00aa90f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions distribution/bin/startup.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ set BASE_DIR="%BASE_DIR:~0,-5%"

set CUSTOM_SEARCH_LOCATIONS=file:%BASE_DIR%/conf/

set MODE="cluster"
REM set MODE="cluster"
set MODE="standalone"
set FUNCTION_MODE="all"
set SERVER=nacos-server
set MODE_INDEX=-1
Expand Down Expand Up @@ -83,7 +84,7 @@ set "NACOS_OPTS=%NACOS_OPTS% -Dnacos.home=%BASE_DIR%"
set "NACOS_OPTS=%NACOS_OPTS% -jar %BASE_DIR%\target\%SERVER%.jar"

rem set nacos spring config location
set "NACOS_CONFIG_OPTS=--spring.config.additional-location=optional:%CUSTOM_SEARCH_LOCATIONS%"
set "NACOS_CONFIG_OPTS=--spring.config.additional-location=%CUSTOM_SEARCH_LOCATIONS%"

rem set nacos log4j file location
set "NACOS_LOG4J_OPTS=--logging.config=%BASE_DIR%/conf/nacos-logback.xml"
Expand Down

0 comments on commit 00aa90f

Please sign in to comment.