Установка apache-activemq-5.8.0 на Red Hat Enterprise Linux Server release 6.4 (Santiago)

cd /opt/
wget apache-activemq-5.8.0-bin.tar.gz
tar zxvf apache-activemq-5.8.0-bin.tar.gz
ln -s apache-activemq-5.8.0 activemq
nano /opt/activemq/conf/activemq.xml

  • <broker xmlns="http://activemq.apache.org/schema/core" brokerName="localhost" dataDirectory="${activemq.data}" useJmx="true">
  • <managementContext createConnector="true" connectorPort="11099"/>
  • <kahaDB directory="${activemq.data}/kahadb" enableJournalDiskSyncs="true"/>
  • <memoryUsage limit="512 mb"/>

nano /etc/init.d/activemq

 #!/bin/bash
 #
 # activemq Starts ActiveMQ.
 #
 #
 # chkconfig: 345 88 12
 # description: ActiveMQ is a JMS Messaging Queue Server.
 ### BEGIN INIT INFO
 # Provides: $activemq
 ### END INIT INFO


 # Set activemq related environment
 ACTIVEMQ_HOME=/opt/activemq

# Invoke ActiveMQ
 $ACTIVEMQ_HOME/bin/activemq $1

chmod +x /etc/init.d/activemq
service activemq start
netstat -anp | grep 6818
netstat -anp | grep java

nano /etc/sysconfig/iptables

-A INPUT -m state --state NEW -m tcp -p tcp --dport 8161 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 61616 -j ACCEPT

service iptables restart
iptables -L

http://localhost:8161/
admin:admin