start.bat (opensearchserver-1.5.13-2b6dfa4) | : | start.bat (opensearchserver-1.5.14-d0d167e) | ||
---|---|---|---|---|
@echo off | @echo off | |||
if "%OS%" == "Windows_NT" setlocal | if "%OS%" == "Windows_NT" setlocal | |||
rem Move to the directory containing this script | rem Move to the directory containing this script | |||
cd %cd% | cd %cd% | |||
set LANG=en_US.UTF-8 | set LANG=en_US.UTF-8 | |||
set JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF-8 | set JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF-8 -Djava.protocol.handler.pkgs=jci fs | |||
rem The directory containing the indexes | rem The directory containing the indexes | |||
set OPENSEARCHSERVER_DATA=%cd%\data | set OPENSEARCHSERVER_DATA=%cd%\data | |||
rem The TCP port used by the server | rem The TCP port used by the server | |||
set SERVER_PORT=9090 | set SERVER_PORT=9090 | |||
rem Any JAVA option. Often used to allocate more memory. Uncomment this line to allocate 1GB. | rem Any JAVA option. Often used to allocate more memory. Uncomment this line to allocate 1GB. | |||
rem set JAVA_OPTS=%JAVA_OPTS% -Xms1G -Xmx1G | rem set JAVA_OPTS=%JAVA_OPTS% -Xms1G -Xmx1G | |||
rem Starting the server | rem Starting the server | |||
java %JAVA_OPTS% -jar opensearchserver.jar -extractDirectory server -httpPort %S ERVER_PORT% -uriEncoding UTF-8 -Doss.externalparser.classpath=%cd%/lib/ext/* | java %JAVA_OPTS% -jar opensearchserver.jar -extractDirectory server -httpPort %S ERVER_PORT% -uriEncoding UTF-8 | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |