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&wireformat.maxframesize=104857600"/> <Transportconnectorname= "AMQP"URI= "amqp://0.0.0.0:5672?maximumconnections=1000&wireformat.maxframesize=104857600"/> <Transportconnectorname= "Stomp"URI= "stomp://0.0.0.0:61613?maximumconnections=1000&wireformat.maxframesize=104857600"/> <Transportconnectorname= "Mqtt"URI= "mqtt://0.0.0.0:1883?maximumconnections=1000&wireformat.maxframesize=104857600"/> <Transportconnectorname= "ws"URI= "ws://0.0.0.0:61614?maximumconnections=1000&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