`

ActiveMQ 安装windwos服务不能启动问题

 
阅读更多
一.AcitveMQ windwos 服务
1.安装目录下新建 temp文件夹

2.安装目录下\bin\win32\wrapper.conf指定java.io.tempdir目录

wrapper.java.additional.10=-Djava.io.tmpdir="%ACTIVEMQ_HOME%/temp"




# ------------------------------------------------------------------------
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
# 
# http://www.apache.org/licenses/LICENSE-2.0
# 
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ------------------------------------------------------------------------

#********************************************************************
# Wrapper Properties
#********************************************************************

#wrapper.debug=TRUE
set.default.ACTIVEMQ_HOME=../..
set.default.ACTIVEMQ_BASE=../..

wrapper.working.dir=.

# Java Application
wrapper.java.command=java

# Java Main class.  This class must implement the WrapperListener interface
#  or guarantee that the WrapperManager class is initialized.  Helper
#  classes are provided to do this for you.  See the Integration section
#  of the documentation for details.
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp

# Java Classpath (include wrapper.jar)  Add class path elements as
#  needed starting from 1
wrapper.java.classpath.1=%ACTIVEMQ_HOME%/bin/wrapper.jar
wrapper.java.classpath.2=%ACTIVEMQ_HOME%/bin/run.jar

# Java Library Path (location of Wrapper.DLL or libwrapper.so)
wrapper.java.library.path.1=%ACTIVEMQ_HOME%/bin/win32

# Java Additional Parameters
# note that n is the parameter number starting from 1.
wrapper.java.additional.1=-Dactivemq.home="%ACTIVEMQ_HOME%"
wrapper.java.additional.2=-Dactivemq.base="%ACTIVEMQ_BASE%"
wrapper.java.additional.3=-Djavax.net.ssl.keyStorePassword=password
wrapper.java.additional.4=-Djavax.net.ssl.trustStorePassword=password
wrapper.java.additional.5=-Djavax.net.ssl.keyStore="%ACTIVEMQ_BASE%/conf/broker.ks"
wrapper.java.additional.6=-Djavax.net.ssl.trustStore="%ACTIVEMQ_BASE%/conf/broker.ts"
wrapper.java.additional.7=-Dcom.sun.management.jmxremote
wrapper.java.additional.8=-Dorg.apache.activemq.UseDedicatedTaskRunner=true
wrapper.java.additional.9=-Djava.util.logging.config.file=logging.properties
wrapper.java.additional.10=-Djava.io.tmpdir="%ACTIVEMQ_HOME%/temp"

# Uncomment to enable remote jmx
#wrapper.java.additional.n=-Dcom.sun.management.jmxremote.port=1616 
#wrapper.java.additional.n=-Dcom.sun.management.jmxremote.authenticate=false 
#wrapper.java.additional.n=-Dcom.sun.management.jmxremote.ssl=false

# Uncomment to enable YourKit profiling
#wrapper.java.additional.n=-Xrunyjpagent

# Uncomment to enable remote debugging
#wrapper.java.additional.n=-Xdebug -Xnoagent -Djava.compiler=NONE 
#wrapper.java.additional.n=-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005

# Initial Java Heap Size (in MB)
#wrapper.java.initmemory=3

# Maximum Java Heap Size (in MB)
wrapper.java.maxmemory=512

# Application parameters.  Add parameters as needed starting from 1
wrapper.app.parameter.1=org.apache.activemq.console.Main
wrapper.app.parameter.2=start

#********************************************************************
# Wrapper Logging Properties
#********************************************************************
# Format of output for the console.  (See docs for formats)
wrapper.console.format=PM

# Log Level for console output.  (See docs for log levels)
wrapper.console.loglevel=INFO

# Log file to use for wrapper output logging.
wrapper.logfile=%ACTIVEMQ_BASE%/data/wrapper.log

# Format of output for the log file.  (See docs for formats)
wrapper.logfile.format=LPTM

# Log Level for log file output.  (See docs for log levels)
wrapper.logfile.loglevel=INFO

# Maximum size that the log file will be allowed to grow to before
#  the log is rolled. Size is specified in bytes.  The default value
#  of 0, disables log rolling.  May abbreviate with the 'k' (kb) or
#  'm' (mb) suffix.  For example: 10m = 10 megabytes.
wrapper.logfile.maxsize=0

# Maximum number of rolled log files which will be allowed before old
#  files are deleted.  The default value of 0 implies no limit.
wrapper.logfile.maxfiles=0

# Log Level for sys/event log output.  (See docs for log levels)
wrapper.syslog.loglevel=NONE

#********************************************************************
# Wrapper Windows Properties
#********************************************************************
# Title to use when running as a console
wrapper.console.title=ActiveMQ

#********************************************************************
# Wrapper Windows NT/2000/XP Service Properties
#********************************************************************
# WARNING - Do not modify any of these properties when an application
#  using this configuration file has been installed as a service.
#  Please uninstall the service before modifying this section.  The
#  service can then be reinstalled.

# Name of the service
wrapper.ntservice.name=ActiveMQ

# Display name of the service
wrapper.ntservice.displayname=ActiveMQ

# Description of the service
wrapper.ntservice.description=ActiveMQ Broker

# Service dependencies.  Add dependencies as needed starting from 1
wrapper.ntservice.dependency.1=

# Mode in which the service is installed.  AUTO_START or DEMAND_START
wrapper.ntservice.starttype=AUTO_START

# Allow the service to interact with the desktop.
wrapper.ntservice.interactive=false

4.出现如下错误 Unable to execute Java command.  系统找不到指定的文件。 (0x2)
5.指定Java安装路径
wrapper.java.command=C:/Program Files/Java/jdk1.7.0_25/bin/java


# ------------------------------------------------------------------------
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
# 
# http://www.apache.org/licenses/LICENSE-2.0
# 
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ------------------------------------------------------------------------

#********************************************************************
# Wrapper Properties
#********************************************************************

# wrapper.debug=TRUE
set.default.ACTIVEMQ_HOME=../..
set.default.ACTIVEMQ_BASE=../..
wrapper.working.dir=.

# Java Application
wrapper.java.command=C:/Program Files/Java/jdk1.7.0_25/bin/java

# Java Main class.  This class must implement the WrapperListener interface
#  or guarantee that the WrapperManager class is initialized.  Helper
#  classes are provided to do this for you.  See the Integration section
#  of the documentation for details.
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp

# Java Classpath (include wrapper.jar)  Add class path elements as
#  needed starting from 1
wrapper.java.classpath.1=%ACTIVEMQ_HOME%/bin/wrapper.jar
wrapper.java.classpath.2=%ACTIVEMQ_HOME%/bin/run.jar

# Java Library Path (location of Wrapper.DLL or libwrapper.so)
wrapper.java.library.path.1=%ACTIVEMQ_HOME%/bin/win32

# Java Additional Parameters
# note that n is the parameter number starting from 1.
wrapper.java.additional.1=-Dactivemq.home="%ACTIVEMQ_HOME%"
wrapper.java.additional.2=-Dactivemq.base="%ACTIVEMQ_BASE%"
wrapper.java.additional.3=-Djavax.net.ssl.keyStorePassword=password
wrapper.java.additional.4=-Djavax.net.ssl.trustStorePassword=password
wrapper.java.additional.5=-Djavax.net.ssl.keyStore="%ACTIVEMQ_BASE%/conf/broker.ks"
wrapper.java.additional.6=-Djavax.net.ssl.trustStore="%ACTIVEMQ_BASE%/conf/broker.ts"
wrapper.java.additional.7=-Dcom.sun.management.jmxremote
wrapper.java.additional.8=-Dorg.apache.activemq.UseDedicatedTaskRunner=true
wrapper.java.additional.9=-Djava.util.logging.config.file=logging.properties
wrapper.java.additional.10=-Djava.io.tmpdir="%ACTIVEMQ_HOME%/temp"

# Uncomment to enable remote jmx
#wrapper.java.additional.n=-Dcom.sun.management.jmxremote.port=1616 
#wrapper.java.additional.n=-Dcom.sun.management.jmxremote.authenticate=false 
#wrapper.java.additional.n=-Dcom.sun.management.jmxremote.ssl=false

# Uncomment to enable YourKit profiling
#wrapper.java.additional.n=-Xrunyjpagent

# Uncomment to enable remote debugging
#wrapper.java.additional.n=-Xdebug -Xnoagent -Djava.compiler=NONE 
#wrapper.java.additional.n=-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005

# Initial Java Heap Size (in MB)
#wrapper.java.initmemory=3

# Maximum Java Heap Size (in MB)
wrapper.java.maxmemory=512

# Application parameters.  Add parameters as needed starting from 1
wrapper.app.parameter.1=org.apache.activemq.console.Main
wrapper.app.parameter.2=start

#********************************************************************
# Wrapper Logging Properties
#********************************************************************
# Format of output for the console.  (See docs for formats)
wrapper.console.format=PM

# Log Level for console output.  (See docs for log levels)
wrapper.console.loglevel=INFO

# Log file to use for wrapper output logging.
wrapper.logfile=%ACTIVEMQ_BASE%/data/wrapper.log

# Format of output for the log file.  (See docs for formats)
wrapper.logfile.format=LPTM

# Log Level for log file output.  (See docs for log levels)
wrapper.logfile.loglevel=INFO

# Maximum size that the log file will be allowed to grow to before
#  the log is rolled. Size is specified in bytes.  The default value
#  of 0, disables log rolling.  May abbreviate with the 'k' (kb) or
#  'm' (mb) suffix.  For example: 10m = 10 megabytes.
wrapper.logfile.maxsize=0

# Maximum number of rolled log files which will be allowed before old
#  files are deleted.  The default value of 0 implies no limit.
wrapper.logfile.maxfiles=0

# Log Level for sys/event log output.  (See docs for log levels)
wrapper.syslog.loglevel=NONE

#********************************************************************
# Wrapper Windows Properties
#********************************************************************
# Title to use when running as a console
wrapper.console.title=ActiveMQ

#********************************************************************
# Wrapper Windows NT/2000/XP Service Properties
#********************************************************************
# WARNING - Do not modify any of these properties when an application
#  using this configuration file has been installed as a service.
#  Please uninstall the service before modifying this section.  The
#  service can then be reinstalled.

# Name of the service
wrapper.ntservice.name=ActiveMQ

# Display name of the service
wrapper.ntservice.displayname=ActiveMQ

# Description of the service
wrapper.ntservice.description=ActiveMQ Broker

# Service dependencies.  Add dependencies as needed starting from 1
wrapper.ntservice.dependency.1=

# Mode in which the service is installed.  AUTO_START or DEMAND_START
wrapper.ntservice.starttype=AUTO_START

# Allow the service to interact with the desktop.
wrapper.ntservice.interactive=false

二.ActiveMQ web界面安全验证配置

1.安装目录下\conf\jetty.xml 中
    <bean id="securityConstraint" class="org.eclipse.jetty.http.security.Constraint">
        <property name="name" value="BASIC" />
        <property name="roles" value="admin" />
        <property name="authenticate" value="false" />
    </bean>
改为
<property name="authenticate" value="true" />

2.安装目录下\conf\jetty-realm.properties 中修改密码
分享到:
评论

相关推荐

    windows版activemq启动包

    "activemq-windows5.15.2"可能是额外提供的Windows特定的文档或工具,如服务安装脚本,帮助用户将ActiveMQ注册为Windows服务,以便于后台自动启动和管理。 总的来说,这个"windows版activemq启动包"提供了一站式的...

    ActiveMq安装win7

    ### ActiveMQ在Windows 7下的安装与配置指南 #### 一、环境配置 在开始安装ActiveMQ之前,首先需要确保已经正确配置了以下环境: - **操作系统**: Windows 7 64位 - **Java环境**: JDK 1.8.0_65 - **ActiveMQ版本...

    activemq 5.15.1 windows linux 安装jar包 源代码

    4. **启动**: 在Windows上,进入bin目录,双击`activemq.bat`启动服务;在Linux上,执行`bin/activemq start`命令。这会启动ActiveMQ Broker。 5. **监控**: ActiveMQ默认提供一个Web管理界面,访问`...

    windows系统activemq一键安装启动

    在Windows系统上安装并启动ActiveMQ是一项常见的任务,尤其是对于开发和测试环境。以下是一篇关于“Windows系统Apache ActiveMQ一键安装启动”的详细说明。 首先,我们需要了解ActiveMQ的基本概念。ActiveMQ是基于...

    1、 ActiveMQ 安装1

    Apache ActiveMQ 是一款开源的消息中间件,它遵循开放消息中间件协议(Open Message Broker Protocol,即 AMQP)和 Java 消息服务(Java Message Service,JMS)规范。这款中间件允许应用程序通过发送和接收消息来...

    windows搭建activemq单机版

    总结来说,Windows上搭建ActiveMQ单机版需要安装JDK、解压ActiveMQ二进制包、配置和启动服务,然后通过Web管理界面进行管理和测试。理解`activemq.xml`配置文件的结构和内容,以及熟悉ActiveMQ的工作原理,将有助于...

    Windows版ActiveMq

    Wrapper.jar是一个工具,它允许Java应用程序作为Windows服务来运行,这意味着ActiveMQ可以在没有用户登录的情况下启动,并在系统启动时自动运行,提供持续的服务。 在提供的文件名列表`Windows版apache-activemq-...

    window系统搭建activeMQ集群和操作步骤

    在Windows系统上搭建ActiveMQ集群是一项关键的任务,它涉及到分布式消息传递系统的设计和优化。ActiveMQ是Apache软件基金会开发的一款开源消息代理,它遵循Java Message Service (JMS) 规范,提供高可靠的消息传递...

    JDK+Tomcat+ActiveMQ安装环境配置详细说明

    本篇文章将详细阐述如何在Windows操作系统上安装和配置JDK、Tomcat以及ActiveMQ,这三个组件是开发和部署Java Web应用程序的基础。 首先,我们从JDK的安装与配置开始。JDK (Java Development Kit) 是开发和运行Java...

    Linux安装ActiveMQ.doc

    最后,为了确保系统在每次启动时都能自动启动ActiveMQ,你需要将其添加到系统服务列表: ```bash # update-rc.d activemq defaults ``` 这样,当Linux系统重启时,ActiveMQ会按照配置自动启动。 请注意,上述安装...

    activemq服务无法正常启动.docx

    但是在实际使用中,可能会遇到服务无法正常启动的问题。本文档将详细介绍 ActiveMQ 服务无法正常启动的解决方法,并对相关知识点进行解释。 ActiveMQ 服务无法正常启动的原因 在上面的日志信息中,我们可以看到 ...

    WIndows上mqtt服务器-apache-activemq-5.16.0-bin.rar

    启动ActiveMQ通常通过运行bin目录下的`bin\win64\activemq.bat`或`bin\win32\activemq.bat`脚本。配置文件主要位于`conf`目录下的`activemq.xml`,用于设置服务器端口、持久化策略、网络连接等。 2. **MQTT支持**:...

    windows下activemq-5.14.1

    本资源提供的"windows下activemq-5.14.1"压缩包包含了版本5.14.1的所有必要文件,确保了即使在官网下载困难的情况下也能方便地获取。 1. **ActiveMQ介绍** - **什么是ActiveMQ**:ActiveMQ是一个高效、灵活的消息...

    activeMq启动步骤

    首先,让我们了解如何在Windows环境下启动ActiveMQ服务。你需要找到ActiveMQ安装目录下的`bin`目录。在这个目录中,你会看到一个名为`activemq.bat`的批处理文件,这就是用来启动ActiveMQ服务的命令。双击或者在...

    windows版本的activeMQ

    本文将深入探讨Windows版本的ActiveMQ,包括其安装、配置、使用以及常见问题的解决。 首先,安装Windows版本的ActiveMQ非常简单。你可以从Apache官方网站下载最新稳定版的二进制包,如"apache-activemq-5.16.3"。...

    apache-activemq-5.11.1-bin 官方windows版本

    在本文中,我们将深入探讨Apache ActiveMQ 5.11.1这一特定版本在Windows环境下的安装与使用。 1. **ActiveMQ的简介** - Apache ActiveMQ是Apache软件基金会开发的一个开源项目,它的主要功能是作为消息代理,用于...

    ActiveMQ消息服务配置

    1. **安装服务**:在`bin\win32`(64位系统下为`bin\win64`)目录下运行`InstallService.bat`。 2. **卸载服务**:运行`UninstallService.bat`。 3. **权限问题**:在Windows 7或Windows Server 2008环境下,如果...

    apache-activemq-5.16.5

    3. 根据你的操作系统,运行`bin`目录下的启动脚本,例如在Linux/Unix上是`bin/activemq start`,在Windows上是`bin\activemq.bat start`。 4. 打开浏览器访问`http://localhost:8161/admin`,使用默认凭据(通常为...

    Windows版ActiveMQ和linux版ActiveMQ

    1. **安装**: Windows版ActiveMQ通常以可执行jar文件的形式提供,通过解压后运行bin目录下的`activemq.bat`启动脚本来启动服务。 2. **配置**: 配置文件主要在`conf`目录下的`activemq.xml`,可以根据需求调整消息...

    apache-activemq win版本

    2. 运行`bin\win32\activemq.bat`启动脚本启动服务。 3. 默认情况下,ActiveMQ会在`http://localhost:8161/admin/`提供Web管理界面。 **配置Apache ActiveMQ:** 1. 配置文件主要位于`conf\activemq.xml`,可以在此...

Global site tag (gtag.js) - Google Analytics