一、前言
windows2012R2安装activemq5。
二、安装
2.1 下载软件
下载地址:
https://activemq.apache.org/components/classic/download/
2.2 安装:
下载完成之后,解压,打开conf文件夹下的activemq.xml进行配置。
把此模块所有默认的0.0.0.0改为127.0.0.1,
配置用户信息:
在安装目录下conf/activemq.xml中后:
添加如下内容:
<plugins>
<simpleAuthenticationPlugin>
<users>
<authenticationUser username="system" password="manager" groups="users,admins"/>
<authenticationUser username="test" password="user@test" groups="users,admins"/>
</users>
</simpleAuthenticationPlugin>
</plugins>
使用cmd进入到目录文件下执行bin\activemq start,启动即可。
访问地址:http://localhost:8161/admin/,在弹出的框中输入上面设置用户信息登录即可登录。
2.3两种启动方式:
- 双击activemq.bat:命令行启动,命令行关闭即停止
- 双击InstallService.bat:把ActiveMQ注册到服务列表中
在服务列表中,也可以将该服务设置为开机自动启动。
启动时,如果出现下图的错误,说明系统缺少java环境。需要下载Jdk 配置java_home环境变量。