项目实战-linux下安装activeMQ

1.下载ActiveMQ

wget https://archive.apache.org/dist/activemq/5.16.3/apache-activemq-5.16.3-bin.tar.gz

如果下载比较慢,可以进入官网下载,如下:

http://activemq.apache.org/components/classic/download/

在这里插入图片描述
然后将下载好的压缩包上传到linux环境下
2.安装ActiveMQ

2.安装ActiveMQ
安装路径如下:/usr/software/activemq

进入/usr/software/activemq目录下,解压activeMQ 

[root@localhost Desktop]# cd /usr/software/activemq
[root@localhost activemq]# tar -xzvf apache-activemq-5.16.3-bin.tar.gz

 

3.启动ActiveMQ

进入/usr/software/activemq/apache-activemq-5.16.3/bin/linux-x86-64目录下,启动activeMQ 

[root@localhost activemq]# cd /usr/software/activemq/apache-activemq-5.16.3/bin/linux-x86-64

[root@localhost linux-x86-64]# ./activemq start 

 

 

4.开放端口

修改防火墙开启activemq端口8161(管理平台端口)和61616(通讯端口)
[root@localhost linux-x86-64]# vi + /etc/sysconfig/iptables  
#添加下面两行 
-A INPUT -m state --state NEW -m tcp -p tcp --dport 8161 -j  ACCEPT  
-A INPUT -m state --state NEW -m tcp -p tcp --dport 61616 -j  ACCEPT 

重启防火墙

service iptables restart   
[root@localhost linux-x86-64]# service iptables restart 

进入到activeMQ 的 bin 目录,执行 ./activemq start 开启 ,如下:
在这里插入图片描述
查看activeMQ 是不是启动的状态, ./activemq status ,如下:
在这里插入图片描述
停止 activemq 命令 ./activemq stop , 如下 :
在这里插入图片描述

5.验证

http://140.143.26.129:8161/admin/index.jsp

用户名:admin
密码:admin

在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值