码迷,mamicode.com
首页 > Windows程序 > 详细

elk-logstash: window下指定jdk目录

时间:2017-08-20 18:32:39      阅读:390      评论:0      收藏:0      [点我收藏+]

标签:pre   cmd   ram   off   bin   led   ble   bootstrap   trap   

 

\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目录

标签:pre   cmd   ram   off   bin   led   ble   bootstrap   trap   

原文地址:http://www.cnblogs.com/fgq841103/p/7400593.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!