1、下载相关activeMQ安装包

  下载路径:http://activemq.apache.org/download.html

  下载最新安装包,选择Linux版进行下载

2、解压重命名

  (1)解压:

root@localhost opt]# rm -rf apache-activemq-5.14.1-bin.tar.gz

  (2)重命名activeMQ

[root@localhost opt]# mv apache-activemq-5.14.1 ./activeMQ

  (3)由于启动脚本activemq没有可执行的权限,需要授权(此步可选)

[root@localhost opt]# cd activemq/bin/
[root@localhost bin]# chmod 755 ./activemq

  activeMQ需要用到两个端口:61616(消息通讯端口)、8161(管理后台端口,可以在conf/jetty.xml中修改端口号)

  在防火墙中打开这两个端口

[root@localhost bin]# 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

  重启防火墙:

[root@localhost bin]# service iptables restart

3、启动activeMQ

[root@localhost activeMQ]# ./bin/activemq start

4、验证是否安装成功

[root@localhost activemq]# ./bin/activemq status
INFO: Loading '/opt/activemq//bin/env'
INFO: Using java '/opt/jdk1.7.0_79/bin/java'
ActiveMQ is running (pid '3535')

5、关闭/重启activeMQ

[root@localhost activemq]# ./bin/activemq stop
[root@localhost activemq]# ./bin/activemq restart

 6、登录管理后台

 http:192.168.56.129:8161

ActiveMQ在Linux中的安装

  默认初始用户名和密码是admin和admin.

  登录成功页面:

ActiveMQ在Linux中的安装

至此ActiveMQ的安装就成功了! 

相关文章:

  • 2021-08-25
  • 2021-04-22
  • 2021-10-24
  • 2021-07-04
  • 2021-06-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-26
  • 2021-05-04
  • 2022-12-23
  • 2021-09-30
相关资源
相似解决方案