目标:在Linux中部署ActiveMQ(在CenterOS 7.8 环境下安装)。

在安装之间需要先安装jdk1.8

步骤如下:

1、下载 apache-activemq-5.14.1-bin.tar.gz 安装文件。下载路径 http://activemq.apache

2、在 opt 目录下创建 module 、software 文件夹,module 存放安装后程序、 software 存放未解压文件。(如果目录存在本步骤可略过)

[root@VM-4-15-centos opt]# mkdir module

[root@VM-4-15-centos opt]# mkdir software

3、上传压缩包到Linux中 的/opt/software 目录下,并解压到当前目录:

[root@VM-4-15-centos software]# 

 tar -zxvf apache-activemq-5.14.5-bin.tar.gz 

4、移动解压后的文件夹到指定的目录中(/opt/module):

[root@VM-4-15-centos software]# mv apache-activemq-5.14.5 /opt/module

 

 5、 进入activemq驱动目录,启动分linux-x86-32和linux-x86-64,进入bin/linux-x86-64下

 [root@VM-4-15-centos module]#

 cd /opt/module/apache-activemq-5.14.5/bin/linux-x86-64

6、启动activemq

[root@VM-4-15-centos linux-x86-64]# ./activemq start

 

7、 启动成功后,检查activemq默认端口61616,(官方文档:ActiveMQ's default port is 61616. ) ActiveMQ默认采用61616端口提供JMS服务,使用8161端口提供管理控制台服务,执行以下命令以便检验是否已经成功启动ActiveMQ服务。

[root@VM-4-15-centos linux-x86-64]# netstat -an | grep 61616

8、直接访问activemq的管理页面:http://localhost:8161/admin/

默认登录用户:admin 密码:admin

 

 

 

 

 

 

 

 

 

更多推荐

Linux 系统中安装配置Active MQ