一、安装
Apache ActiveMQ ™ is the most popular and powerful open source messaging and Integration Patterns server.
Apache ActiveMQ is fast, supports many Cross Language Clients and Protocols, comes with easy to use Enterprise Integration Patterns and many advanced features while fully supporting JMS 1.1 and J2EE 1.4. Apache ActiveMQ is released under the Apache 2.0 License
[root@master ~]# cd /opt
[root@master opt]# ls -l
total 133244
drwxr-xr-x 9 52583 users 4096 Mar 28 2015 alibaba-rocketmq
-rw-r--r-- 1 root root 11830603 Oct 13 06:14 alibaba-rocketmq-3.2.6.tar.gz
-rw-r--r-- 1 root root 47362127 Nov 1 04:02 apache-activemq-5.8.0-bin.tar.gz
-rw-r--r-- 1 root root 2253345 Jan 4 2016 cacti-0.8.8b.tar.gz
drwxr-xr-x 7 root root 4096 Nov 24 2015 flume1.6
drwxr-xr-x 7 root root 4096 Nov 23 2015 grafana-2.5.0
-rw-r--r-- 1 root root 23029152 Nov 22 2015 grafana-2.5.0.linux-x64.tar.gz
drwxr-xr-x 16 root root 4096 Dec 8 2015 hadoop
drwxr-xr-x 3 root root 4096 Dec 8 2015 hadoop_data
drwxr-xr-x 12 hadoop hadoop 4096 Jan 4 2016 httpd-2.2.23
-rw-r--r-- 1 root root 7374712 Sep 11 2012 httpd-2.2.23.tar.gz
drwxr-xr-x 8 nagios games 4096 Jan 1 2016 libevent-1.4.14b-stable
-rw-r--r-- 1 root root 474874 Jun 20 2010 libevent-1.4.14b-stable.tar.gz
drwxrwxr-x 7 1000 1000 4096 Jan 1 2016 memcached
-rw-r--r-- 1 root root 359709 Nov 19 2015 memcached-1.4.25.tar.gz
drwxr-xr-x 5 hadoop hadoop 4096 Jan 3 2016 mongodb
-rw-r--r-- 1 root root 25376376 Nov 9 2015 mongodb-linux-x86_64-1.6.3.tgz
drwxrwxr-x 16 nagios nagios 4096 Jan 4 2016 nagios
-rw-r--r-- 1 root root 1784746 Nov 30 2012 nagios-3.4.3.tar.gz
drwxrwxrwx 16 10002 10002 4096 Jan 4 2016 nagios-plugins-1.4.13
-rw-r--r-- 1 root root 2279556 Dec 25 2015 nagios-plugins-1.4.13.tar.gz
drwxr-xr-x 17 nagios games 4096 Jan 23 2016 php-5.4.10
-rw-r--r-- 1 root root 14053991 Dec 25 2015 php-5.4.10.tar.gz
drwxr-xr-x 9 root root 4096 Jan 19 2016 tomcat
[root@master opt]# tar -zxvf apache-activemq-5.8.0-bin.tar.gz
[root@master opt]# ls
alibaba-rocketmq cacti-0.8.8b.tar.gz hadoop libevent-1.4.14b-stable mongodb nagios-plugins-1.4.13 tomcat
alibaba-rocketmq-3.2.6.tar.gz flume1.6 hadoop_data libevent-1.4.14b-stable.tar.gz mongodb-linux-x86_64-1.6.3.tgz nagios-plugins-1.4.13.tar.gz
apache-activemq-5.8.0 grafana-2.5.0 httpd-2.2.23 memcached nagios php-5.4.10
apache-activemq-5.8.0-bin.tar.gz grafana-2.5.0.linux-x64.tar.gz httpd-2.2.23.tar.gz memcached-1.4.25.tar.gz nagios-3.4.3.tar.gz php-5.4.10.tar.gz
[root@master opt]# cd a
alibaba-rocketmq/ alibaba-rocketmq-3.2.6.tar.gz apache-activemq-5.8.0/ apache-activemq-5.8.0-bin.tar.gz
[root@master opt]# cd apache-activemq-5.8.0
[root@master apache-activemq-5.8.0]# ls
activemq-all-5.8.0.jar bin conf data docs example lib LICENSE NOTICE README.txt user-guide.html webapps webapps-demo WebConsole-README.txt
[root@master apache-activemq-5.8.0]# cd bin/
[root@master bin]# ls
activemq activemq-admin activemq.jar diag linux-x86-32 linux-x86-64 macosx wrapper.jar
[root@master bin]# sh activemq
INFO: Using default configuration
(you can configure options in one of these file: /etc/default/activemq /root/.activemqrc)
INFO: Invoke the following command to create a configuration file
activemq setup [ /etc/default/activemq | /root/.activemqrc ]
INFO: Using java '/usr/java/jdk1.7.0_67/bin/java'
Java Runtime: Oracle Corporation 1.7.0_67 /usr/java/jdk1.7.0_67/jre
Heap sizes: current=1013632k free=1002447k max=1013632k
JVM args: -Xms1G -Xmx1G -Djava.util.logging.config.file=logging.properties -Dactivemq.classpath=/opt/apache-activemq-5.8.0/conf; -Dactivemq.home=/opt/apache-activemq-5.8.0 -Dactivemq.base=/opt/apache-activemq-5.8.0 -Dactivemq.conf=/opt/apache-activemq-5.8.0/conf -Dactivemq.data=/opt/apache-activemq-5.8.0/data
Extensions classpath:
[/opt/apache-activemq-5.8.0/lib,/opt/apache-activemq-5.8.0/lib/camel,/opt/apache-activemq-5.8.0/lib/optional,/opt/apache-activemq-5.8.0/lib/web,/opt/apache-activemq-5.8.0/lib/extra]
ACTIVEMQ_HOME: /opt/apache-activemq-5.8.0
ACTIVEMQ_BASE: /opt/apache-activemq-5.8.0
ACTIVEMQ_CONF: /opt/apache-activemq-5.8.0/conf
ACTIVEMQ_DATA: /opt/apache-activemq-5.8.0/data
Usage: Main [--extdir <dir>] [task] [task-options] [task data]
Tasks:
browse - Display selected messages in a specified destination.
bstat - Performs a predefined query that displays useful statistics regarding the specified broker
create - Creates a runnable broker instance in the specified path.
decrypt - Decrypts given text
encrypt - Encrypts given text
export - Exports a stopped brokers data files to an archive file
list - Lists all available brokers in the specified JMX context
purge - Delete selected destination's messages that matches the message selector
query - Display selected broker component's attributes and statistics.
start - Creates and starts a broker using a configuration file, or a broker URI.
stop - Stops a running broker specified by the broker name.
Task Options (Options specific to each task):
--extdir <dir> - Add the jar files in the directory to the classpath.
--version - Display the version information.
-h,-?,--help - Display this help information. To display task specific help, use Main [task] -h,-?,--help
Task Data:
- Information needed by each specific task.
JMX system property options:
-Dactivemq.jmx.url=<jmx service uri> (default is: 'service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi')
-Dactivemq.jmx.user=<user name>
-Dactivemq.jmx.password=<password>
Tasks provided by the sysv init script:
restart - stop running instance (if there is one), start new instance
console - start broker in foreground, useful for debugging purposes
status - check if activemq process is running
setup - create the specified configuration file for this init script
(see next usage section)
Configuration of this script:
The configuration of this script can be placed on /etc/default/activemq or /root/.activemqrc.
To use additional configurations for running multiple instances on the same operating system
rename or symlink script to a name matching to activemq-instance-<INSTANCENAME>.
This changes the configuration location to /etc/default/activemq-instance-<INSTANCENAME> and
$HOME/.activemqrc-instance-<INSTANCENAME>. Configuration files in /etc have higher precedence.
[root@master bin]# sh activemq-admin
Java Runtime: Oracle Corporation 1.7.0_67 /usr/java/jdk1.7.0_67/jre
Heap sizes: current=7296k free=6863k max=124736k
JVM args: -Dactivemq.classpath=/opt/apache-activemq-5.8.0/conf; -Dactivemq.home=/opt/apache-activemq-5.8.0 -Dactivemq.base=/opt/apache-activemq-5.8.0 -Dactivemq.conf=/opt/apache-activemq-5.8.0/conf -Dactivemq.data=/opt/apache-activemq-5.8.0/data -Djava.io.tmpdir=/opt/apache-activemq-5.8.0/tmp
Extensions classpath:
[/opt/apache-activemq-5.8.0/lib,/opt/apache-activemq-5.8.0/lib/camel,/opt/apache-activemq-5.8.0/lib/optional,/opt/apache-activemq-5.8.0/lib/web,/opt/apache-activemq-5.8.0/lib/extra]
ACTIVEMQ_HOME: /opt/apache-activemq-5.8.0
ACTIVEMQ_BASE: /opt/apache-activemq-5.8.0
ACTIVEMQ_CONF: /opt/apache-activemq-5.8.0/conf
ACTIVEMQ_DATA: /opt/apache-activemq-5.8.0/data
Usage: Main [--extdir <dir>] [task] [task-options] [task data]
Tasks:
browse - Display selected messages in a specified destination.
bstat - Performs a predefined query that displays useful statistics regarding the specified broker
create - Creates a runnable broker instance in the specified path.
decrypt - Decrypts given text
encrypt - Encrypts given text
export - Exports a stopped brokers data files to an archive file
list - Lists all available brokers in the specified JMX context
purge - Delete selected destination's messages that matches the message selector
query - Display selected broker component's attributes and statistics.
start - Creates and starts a broker using a configuration file, or a broker URI.
stop - Stops a running broker specified by the broker name.
Task Options (Options specific to each task):
--extdir <dir> - Add the jar files in the directory to the classpath.
--version - Display the version information.
-h,-?,--help - Display this help information. To display task specific help, use Main [task] -h,-?,--help
Task Data:
- Information needed by each specific task.
JMX system property options:
-Dactivemq.jmx.url=<jmx service uri> (default is: 'service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi')
-Dactivemq.jmx.user=<user name>
-Dactivemq.jmx.password=<password>
[root@master bin]# sh activemq start
INFO: Using default configuration
(you can configure options in one of these file: /etc/default/activemq /root/.activemqrc)
INFO: Invoke the following command to create a configuration file
activemq setup [ /etc/default/activemq | /root/.activemqrc ]
INFO: Using java '/usr/java/jdk1.7.0_67/bin/java'
INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details
INFO: pidfile created : '/opt/apache-activemq-5.8.0/data/activemq-master.pid' (pid '3693')
[root@master bin]# netstat -tnpl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:930 0.0.0.0:* LISTEN 2868/rpc.statd
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 2827/portmap
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 3142/cupsd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 3200/sendmail: acce
tcp 0 0 :::59779 :::* LISTEN 3693/java
tcp 0 0 :::22 :::* LISTEN 3107/sshd
[root@master bin]#
二、验证
http://192.168.1.104/:8161/admin/
In the default configuration ActiveMQ automatically starts the web console in the
same VM as the broker. The console is accessibly under http://localhost:8161/admin/.
1)、输入密码口令 admin/admin
2)、打开页面
相关推荐
Apache ActiveMQ是开源的、基于Java消息服务(JMS)的应用服务器,它是Apache软件基金会的一部分。这个`apache-activemq-5.13.2-bin.tar.gz`压缩包包含了ActiveMQ的可执行版本,适用于运行在Linux环境下的Java应用...
在安装过程中,解压"apache-activemq-5.15.8-bin.zip"后,你会得到一个包含bin目录的结构,其中包含了启动和停止ActiveMQ服务所需的脚本。在Windows上,你可以使用"bin\win32\activemq.bat",而在Linux或Mac OS上,...
Apache ActiveMQ是开源社区中最流行的消息中间件之一,它基于Java消息服务(JMS)标准,提供高效、可靠的异步通信解决方案。ActiveMQ在企业级应用中广泛应用,因为它支持多种协议,如OpenWire、STOMP、AMQP、MQTT、...
部署ActiveMQ相对简单,主要步骤包括下载Distribution版本、安装以及启动服务器。启动方法有两种:一种是直接运行bin目录下的activemq.bat脚本,另一种是通过在JVM中嵌套启动。部署完成后,可以通过ActiveMQ消息管理...
在Windows上安装Apache ActiveMQ 5.15.3,首先需要解压下载的"apache-activemq-5.15.3-bin"压缩文件,这个文件包含了运行和配置ActiveMQ所需的全部文件。解压后,你会看到一个名为"apache-activemq-5.15.3-windows...
Spring的自动配置功能可以简化ActiveMQ的配置过程,只需在配置文件中指定连接工厂和目的地即可。 在配置Apache ActiveMQ时,我们需要设置以下关键参数: 1. **Broker配置**:定义ActiveMQ服务器的启动和运行方式,...
安装过程** 下载“apache-activemq-5.3.1-bin.tar.gz”后,你需要解压到一个合适的目录。这可以通过命令行工具如`tar`完成: ```bash tar -zxvf apache-activemq-5.3.1-bin.tar.gz ``` 解压后,你可以进入解压后的...
7. **构建系统**:ActiveMQ通常使用Maven作为构建工具,源代码中会有相关的`pom.xml`文件,通过这些文件可以了解项目的依赖关系和构建过程。 8. **测试框架**:源代码会包含单元测试和集成测试,以确保ActiveMQ的...
以下是一个详细的指南,涵盖了从安装JDK到配置远程访问ActiveMQ的全过程。 ### 一、安装JDK **1.1 目的** 在运行ActiveMQ之前,必须先安装Java Development Kit(JDK),因为ActiveMQ依赖于Java环境来运行。 **...
Apache ActiveMQ是业界广泛使用的开源消息代理和队列服务器,它是Apache软件基金会的一部分,属于Java消息服务(JMS)提供商。这个"apache-activemq-5.15.11-bin.zip"文件包含了在Windows操作系统上运行Apache ...
集成过程通常包括配置ActiveMQ为Tomcat的独立服务或者作为Tomcat内部模块,通过修改Tomcat的服务器配置文件(如`server.xml`)来设置ActiveMQ的相关参数。 **使用Apache ActiveMQ-5.11.3需要注意:** 1. **硬件和...
同时,ActiveMQ支持SSL/TLS加密,确保了数据在传输过程中的安全性。 在高可用性和容错性方面,ActiveMQ提供了多种策略,如网络代理(Network of Brokers)、持久化存储和副本集群等。这些特性保证了即使在部分节点...
Apache ActiveMQ是Apache软件基金会开发的一个开源消息中间件,它基于Java Message Service(JMS)规范,用于在分布式系统中高效地处理、路由和传递消息。这个`( apache-activemq-5.13.0-bin.zip )`压缩包包含了...
- **webapps目录**:在ActiveMQ安装目录下的`webapps`文件夹通常包含Web管理控制台和其他Web应用程序。`webapps-demo`目录包含了一系列演示如何使用ActiveMQ的Web应用。 - **Ajax集成**:`webapps-demo`中的例子...
"test"这个文件名可能是解压后的目录或测试文件,通常在安装或部署过程中,会有一个测试用例或示例配置帮助用户快速了解如何与ActiveMQ交互。 总的来说,Apache ActiveMQ是一个强大的消息中间件,广泛应用于企业级...
这个压缩包"apache-activemq-5.15.9-bin.zip"包含了Apache ActiveMQ 5.15.9版本的可执行文件和其他相关资源,供用户在本地环境中安装和运行。 Apache ActiveMQ的主要功能和特点包括: 1. **JMS支持**:ActiveMQ...
Apache ActiveMQ是开源的消息中间件,它在Java消息服务(JMS)规范下运行,用于在分布式系统中处理和传递消息。此“apache-activemq-5.4-SNAPSHOT-bin.tar.gz”软件包是该组件的一个版本,具体为5.4开发阶段的快照。...
本文档主要讲述了ActiveMQ的安装过程,涉及到JMS、Java环境、Eclipse环境等相关知识点。 JMS简介 JMS(Java Message Service)是Java平台上的一种标准消息服务API,允许Java程序之间进行异步消息传递。JMS定义了一...
### ActiveMQ 5.12.1 在 Linux 下的安装与配置详解 ...以上就是ActiveMQ 5.12.1在Linux环境下的安装与配置全过程。通过本文档,您可以顺利地在自己的环境中部署和使用ActiveMQ,实现消息的可靠传递和处理。
本文档详细介绍了在Linux环境下安装和使用ActiveMQ的过程,以及一些基本的配置说明。 首先,我们需要确认安装环境。在本例中,系统是Linux,服务器IP为192.168.2.55,使用用户appsrv和密码appsrv123进行登录。安装...