Created
January 17, 2012 12:17
-
-
Save josecarlossilva/1626469 to your computer and use it in GitHub Desktop.
Instalar ActiveMQ como serviço em SO Windows 64 bits
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
// Abra o arquivo "InstallService.bat" no diretório C:\apache-activemq-5.5.0\bin\win32 e edite a propriedade | |
// "conf" | |
:conf | |
set _WRAPPER_CONF="%ACTIVEMQ_HOME%\bin\win32\wrapper.conf" | |
set _ACTIVEMQ_HOME="set.ACTIVEMQ_HOME=%ACTIVEMQ_HOME%" | |
set _ACTIVEMQ_BASE="set.ACTIVEMQ_BASE=%ACTIVEMQ_BASE%" | |
set _JAVA_HOME="set.JAVA_HOME=%JAVA_HOME%" | |
rem | |
rem Install the Wrapper as an NT service. | |
rem | |
:startup | |
"%ACTIVEMQ_HOME%\bin\win32\wrapper.exe" -i %_WRAPPER_CONF% %_ACTIVEMQ_HOME% %_ACTIVEMQ_BASE% %_JAVA_HOME% | |
if not errorlevel 1 goto :eof | |
pause | |
// abra o arquivo "C:\apache-activemq-5.5.0\bin\win32\wrapper.conf" | |
// mude de | |
# Java Application | |
wrapper.java.command=java | |
//para | |
# Java Application | |
wrapper.java.command=%JAVA_HOME%\bin\java.exe | |
pronto dessa forma o serviço já vai ser instalado com sucesso.Para completar, é só alterar o final do arquivo "UninstallService.bat" com o seguinte código: | |
rem | |
rem Uninstall the Wrapper as an NT service. | |
rem | |
:startup | |
"%ACTIVEMQ_HOME%\bin\win32\wrapper.exe" -r %_WRAPPER_CONF% | |
if not errorlevel 1 goto :eof | |
pause | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment