elk-logstash: window下指定jdk目录
Posted 寻梦人
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了elk-logstash: window下指定jdk目录相关的知识,希望对你有一定的参考价值。
\bin\logstash.bat文件中,
SETLOCAL的后面,CALL "%SCRIPT_DIR%\setup.bat" 的前面增加一行:
@echo off SETLOCAL set SCRIPT_DIR=%~dp0 set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_40 CALL "%SCRIPT_DIR%\setup.bat" :EXEC REM is the first argument a flag? If so, assume ‘agent‘ set first_arg=%1 setlocal EnableDelayedExpansion if "!first_arg:~0,1!" equ "-" ( if "%VENDORED_JRUBY%" == "" ( %RUBYCMD% "%LS_HOME%\lib\bootstrap\environment.rb" "logstash\runner.rb" %* ) else ( %JRUBY_BIN% %jruby_opts% "%LS_HOME%\lib\bootstrap\environment.rb" "logstash\runner.rb" %* ) ) else ( if "%VENDORED_JRUBY%" == "" ( %RUBYCMD% "%LS_HOME%\lib\bootstrap\environment.rb" "logstash\runner.rb" %* ) else ( %JRUBY_BIN% %jruby_opts% "%LS_HOME%\lib\bootstrap\environment.rb" "logstash\runner.rb" %* ) ) ENDLOCAL
以上是关于elk-logstash: window下指定jdk目录的主要内容,如果未能解决你的问题,请参考以下文章