Centos7 ActiveMq安装

下载地址:http://activemq.apache.org/components/classic/download/

https://mirrors.tuna.tsinghua.edu.cn/apache//activemq/5.15.13/apache-activemq-5.15.13-bin.tar.gz

10.1 下载&解压&移动

$ wget https://mirrors.tuna.tsinghua.edu.cn/apache//activemq/5.15.13/apache-activemq-5.15.13-bin.tar.gz
$ tar -zxvf apache-activemq-5.15.13-bin.tar.gz
$ mv apache-activemq-5.15.13/ /usr/local/

10.2 启动测试

$ cd /usr/local/apache-activemq-5.15.13/bin
$ ./activemq start
$ ./activemq stop

10.3 修改账号和密码

$ cd /usr/local/apache-activemq-5.15.13/conf
$ vim jetty-realm.properties

# admin: admin,admin
# 第一个admin为账号,第二个为密码,第三个为角色

10.4 开机自启

创建软连接

$ ln -s /usr/local/apache-activemq-5.15.13/bin/activemq /etc/init.d/

修改启动脚本

$ vim /etc/init.d/activemq

# 在#!/bin/sh后面换行添加如下内容:

# chkconfig: 345 63 37
# description: Auto start ActiveMQ
JAVA_HOME=/usr/local/jre1.8.0_261
JAVA_CMD=java

# 注意:JAVA_HOME 请对应实际路径和版本

添加自启服务

$ vim /etc/rc.d/rc.local

# 末尾添加以下内容:
/etc/rc.d/init.d/activemq start
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值