ActiveMQ。ActiveMQ是一个易于使用的消息中间件。
详细简介:https://cloud.tencent.com/developer/article/1039877
我们简单的介绍一下消息中间件,对它有一个基本认识就好,消息中间件(MOM:Message Orient middleware)。
消息中间件有很多的用途和优点:
首先简单的介绍一下MQ,MQ英文名MessageQueue,中文名也就是大家用的消息队列,干嘛用的呢,说白了就是一个消息的接受和转发的容器,可用于消息推送。
下面进入我们今天的主题,为大家介绍ActiveMQ:
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.
ActiveMQ是由Apache出品的,一款最流行的,能力强劲的开源消息总线。ActiveMQ是一个完全支持JMS1.1和J2EE 1.4规范的 JMS Provider实现,它非常快速,支持多种语言的客户端和协议,而且可以非常容易的嵌入到企业的应用环境中,并有许多高级功能。
以上内容来源地址:http://blog.csdn.net/jiuqiyuliang/article/details/47160259
接下来下载和安装
1.下载ActiveMQ最新版本到自己的电脑
http://activemq.apache.org/activemq-591-release.html
官网下载不下来的。可以去百度网盘下载
http://pan.baidu.com/s/1dEYcG1r
2.解压到本地电脑指定文件夹中
目录结构说明:
3.启动ActiveMQ
双击。或者在cmd都可以执行。进入到bin目录下面。可以看到有activemq.bat 脚本文件
ActiveMQ默认使用的TCP连接端口是61616, 通过查看该端口的信息可以测试ActiveMQ是否成功启动 netstat -an|find “61616”
6.用户名密码默认为admin admin ActiveMQ 修改默认用户名和密码 文件在conf下面的jetty-realm.properties
## ---------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements. See the NOTICE file distributed with
## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with
## the License. You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## ---------------------------------------------------------------------------
# Defines users that can access the web (console, demo, etc.)
# username: password [,rolename ...]
#看下面就是用户名和密码
admin: admin, admin
user: user, user
以上就是安装和简单介绍的部分
其实ActiveMQ的应用还有很多,大家可以上网查查,不再一一举例。
ActiveMQ并不是很难的中间件。要根据实际情况去应用。可以算是程序员学习技能的一个小阶段。