Installation and configuration of Apache Activemq under Linux CentOS

Source: Internet
Author: User
Tags stomp

ActiveMQ is the most popular, powerful, open source messaging bus that Apache has produced. ActiveMQ is a fully supported JMS1.1 and the Java EE 1.4 specification

JMS Provider Implementation, although the JMS specification has been in place for a long time, JMS still plays a special role in the middle of today's Java EE applications.

>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>

Operating system: CentOS Linux release 7.1.1503 (Core)

Server address: 192.168.100.2

JDK Versions: Java version "1.7.0_67"

ACTIVEMQ version: apache-activemq-5.12.1

1, to ActiveMQ official website:http://activemq.apache.org, download apache-activemq-5.12.1-bin.tar.gz

2, install JDK-7U67-LINUX-X64.RPM, and configure environment variables

3, upload apache-activemq-5.12.1-bin.tar.gz to Linux server, and unzip, directory structure as follows:

Some of these catalogs are described below:

Bin directory: (under Windows Bat and Unix/linux below SH) Start the ACTIVEMQ start-up service right here.

Conf directory: ACTIVEMQ configuration directory, containing the most basic ACTIVEMQ configuration files

Data Directory: Log file directory for ACTIVEMQ

WebApps Directory: System Administrator Web Control interface file

4, start Activemq, enter the Apache-activemq-5.12.1/bin directory, execute the following command

[[email protected] bin]$./activemq Start &            // In fact the new version of ACTIVEMQ can also not add & background symbols, close activemq, use. Activemq stop

In the older version of ACTIVEMQ (as in the author's work, using apache-activemq-5.8) There are also activemq-admin files

We can also use the./activemq-admin start command to start with the same effect as the./activemq start.

5, the successful start can be HTTP://IP address: 8161 Way to access the management interface, the default user name and password admin/admin

6. After Activemq startup, 8161 and 616,162 ports are enabled by default

where 8161 port is ACTIVEMQ Web Management control port, 61616 is ACTIVEMQ communication port

=================================================================

Part of the profile description for ACTIVEMQ >>>>>>>>>>>>>>>>>>>

(1) The modification of the Web management port, ACTIVEMQ uses the jetty server to manage,

We can configure it in the Conf/jetty.xml file, and the Web management port defaults to 8161, defined in the following location in the Jetty.xml file

<BeanID= "Jettyport"class= "Org.apache.activemq.web.WebConsolePort"Init-method= "Start">             <!--The default port number for the Web console -        < Propertyname= "Host"value= "0.0.0.0"/>        < Propertyname= "Port"value= "8161"/>    </Bean>

(2) The communication port is defined in the activemq master configuration file,./conf/activemq.xml

       <transportconnectors>            <!--DOS Protection, limit concurrent connections to $ and frame size to 100MB -            <Transportconnectorname= "Openwire"URI= "tcp://0.0.0.0:61616?maximumconnections=1000&amp;wireformat.maxframesize=104857600"/>            <Transportconnectorname= "AMQP"URI= "amqp://0.0.0.0:5672?maximumconnections=1000&amp;wireformat.maxframesize=104857600"/>            <Transportconnectorname= "Stomp"URI= "stomp://0.0.0.0:61613?maximumconnections=1000&amp;wireformat.maxframesize=104857600"/>            <Transportconnectorname= "Mqtt"URI= "mqtt://0.0.0.0:1883?maximumconnections=1000&amp;wireformat.maxframesize=104857600"/>            <Transportconnectorname= "ws"URI= "ws://0.0.0.0:61614?maximumconnections=1000&amp;wireformat.maxframesize=104857600"/>        </transportconnectors>

(3) Web management interface The default user name is Admin/admin, and its configuration file is located in ./conf/jetty-realm.properties, which is in the following format:

It is important to note that the user name and password are in the format: user name: password, role name

Respect for the work of others reproduced please be sure to indicate the source: http://www.cnblogs.com/5201351/p/4901380.html

Installation and configuration of Apache Activemq under Linux CentOS

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.