centos7 安装 ActiveMQ

1:  官网: http://activemq.apache.org/activemq-5140-release.html

    下载liunx版本

centos7 安装 ActiveMQ

 

2: 上传至liunx目录,

解压:

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

3: 启动

cd  apache-activemq-5.14.0/bin

centos7 安装 ActiveMQ

 

4: 启动或停止

./activemq  start  启动

./activemq  stop  停止

 

5: 默认端口: 8161(web页面访问端口), 61616 (服务监控端口,程序访问端口)

  防火墙开启端口通行:

firewall-cmd --zone=public --add-port=8161/tcp --permanent    

firewall-cmd --zone=public --add-port=61616/tcp --permanent    

firewall-cmd --reload

 

6: 页面访问:http://IP:8161/admin

  默认用户名、密码   admin/admin

centos7 安装 ActiveMQ

增加用户

vim  /conf/ activemq.xml

在 broker 标签前增加如下内容。

centos7 安装 ActiveMQ

 

7:加入 开启启动

vim /etc/rc.d/rc.local

加入你的路径。

centos7 安装 ActiveMQ

赋权

sudo  chmod  +x  rc.local