我需要在 jetty.xml 中新增什麼內容才能讓管理控制台正常運作?

我需要在 jetty.xml 中新增什麼內容才能讓管理控制台正常運作?

我有一個用於開發目的的 ubuntu 伺服器,運行 activemq。我從軟體包儲存庫安裝了它們,並對 activemq 進行了一些小的配置。我想使用管理控制台,但為了做到這一點,我需要套件中似乎缺少的 webapps 資料夾。

我在包裹裡翻遍了,沒有找到。我認為 webapps 應該位於{activemq.home}從 上的套件定義的資料夾中/usr/share/activemq。我還知道它需要像 xml 中那樣的 jetty 設定。 jetty 設定可以在範例文件中找到:/usr/share/doc/activemq/examples/conf/jetty.xml.gz

我的問題是我應該在 jetty.xml 中放入什麼以使管理控制台正常工作?我應該將 webapps 資料夾從 apache 網站下載的 tar.gz 包複製到主資料夾嗎?

如果有幫助的話,發布我目前的 activemq.xml:

<beans
  xmlns="http://www.springframework.org/schema/beans"
  xmlns:amq="http://activemq.apache.org/schema/core"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
  http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd">

    <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>

    <broker xmlns="http://activemq.apache.org/schema/core" brokerName="localhost" dataDirectory="${activemq.base}/data" destroyApplicationContextOnStop="true">

    <destinationPolicy>
            <policyMap>
              <policyEntries>
                <policyEntry topic=">" producerFlowControl="true" memoryLimit="1mb">
                  <pendingSubscriberPolicy>
                    <vmCursor />
                  </pendingSubscriberPolicy>
                </policyEntry>
                <policyEntry queue=">" producerFlowControl="true" memoryLimit="1mb">
                </policyEntry>
              </policyEntries>
            </policyMap>
        </destinationPolicy> 

        <destinations>
            <queue physicalName="CMAgentStatus" />
            <queue physicalName="CMUpdateRequest" />
            <queue physicalName="CMSnapshotEvent" />
        </destinations>

        <managementContext>
            <managementContext createConnector="true"/>
        </managementContext>

        <persistenceAdapter>
            <kahaDB directory="${activemq.base}/data/kahadb"/>
        </persistenceAdapter>

        <transportConnectors>
            <transportConnector name="openwire" uri="tcp://0.0.0.0:61616"/>
        </transportConnectors>

    </broker>

<!-- <import resource="jetty.xml"/> -->
</beans>

答案1

我最終從網站下載了 activeMQ 二進位檔案並將它們安裝到 /opt/activemq。然後為 activemq 和 update-rc 預設值建立初始化腳本。

相關內容