A-MQ 5.11 Install

This article including steps to install A-MQ 5.11 and test create queue, etc.

Table of Contents

安装

$ unzip apache-activemq-5.11.0.redhat-620133-bin.zip
$ cd apache-activemq-5.11.0.redhat-620133/

配置

conf/users.properties
admin=admin
conf/credentials.properties
activemq.username=admin
activemq.password=admin
guest.password=password
conf/groups.properties
admins=admin
conf/activemq.xml
<plugins>
    <simpleAuthenticationPlugin >
        <users>
            <authenticationUser username="admin" password="${activemq.password}" groups="users, admins" />
        </users>
    </simpleAuthenticationPlugin>
</plugins>
conf/activemq.xml
<destinationPolicy>
    <policyMap>
        <policyEntries>
            <policyEntry topic=">" producerFlowControl="true" memoryLimit="100mb">
                <pendingMessageLimitStrategy>
                    <constantPendingMessageLimitStrategy limit="5000"/>
                </pendingMessageLimitStrategy>
            </policyEntry>
            <policyEntry queue=">" producerFlowControl="true" memoryLimit="100mb">
            </policyEntry>
        </policyEntries>
    </policyMap>
</destinationPolicy>
conf/activemq.xml
<managementContext>
    <managementContext createConnector="true"  connectorPort="11099">
        <property xmlns="http://www.springframework.org/schema/beans" name="environment">
            <map xmlns="http://www.springframework.org/schema/beans">
                <entry xmlns="http://www.springframework.org/schema/beans" key="jmx.remote.x.password.file" value="${activemq.conf}/jmx.password"/>
                <entry xmlns="http://www.springframework.org/schema/beans" key="jmx.remote.x.access.file" value="${activemq.conf}/jmx.access"/>
            </map>
        </property>
    </managementContext>
</managementContext>
conf/activemq.xml
<systemUsage>
    <systemUsage>
        <memoryUsage>
            <memoryUsage percentOfJvmHeap="70" />
        </memoryUsage>
        <storeUsage>
            <storeUsage limit="1 gb"/>
        </storeUsage>
        <tempUsage>
            <tempUsage limit="2 gb"/>
        </tempUsage>
    </systemUsage>
</systemUsage>
onf/activemq.xml
<transportConnectors>
    <transportConnector name="openwire" uri="tcp://0.0.0.0:61616?maximumConnections=3000&amp;wireFormat.maxFrameSize=104857600"/>
</transportConnectors>

results matching ""

    No results matching ""