CentOS7 安装ActiveMQ

安装环境 :

  • CentOS7
  • JDK8
wget http://archive.apache.org/dist/activemq/5.14.5/apache-activemq-5.14.5-bin.tar.gz
mkdir /usr/local/activemq
tar -xzf apache-activemq-5.14.5-bin.tar.gz
mv apache-activemq-5.14.5 /usr/local/activemq
rm apache-activemq-5.14.5-bin.tar.gz

cd /etc/init.d/
vi activemq
#!/bin/sh
#
# /etc/init.d/activemq
# chkconfig: 345 63 37
# description: activemq servlet container.
# processname: activemq 5.14.1

# Source function library.
#. /etc/init.d/functions
# source networking configuration.
#. /etc/sysconfig/network

export JAVA_HOME=/usr/jdk8
export CATALINA_HOME=/usr/local/activemq/apache-activemq-5.14.5

case $1 in
    start)
        sh $CATALINA_HOME/bin/activemq start
    ;;
    stop)
        sh $CATALINA_HOME/bin/activemq stop
    ;;
    restart)
        sh $CATALINA_HOME/bin/activemq stop
        sleep 1
        sh $CATALINA_HOME/bin/activemq start
    ;;

esac
exit 0
chmod 777 activemq
chkconfig activemq on
service activemq start

访问:
http://IP地址:8161
默认用户名密码为:admin/admin

这里写图片描述

其它命令

#查看activemq状态
service activemq status

#其他和关闭activemq服务
service activemq start
service activemq stop

#设置开机启动或不启动activemq服务
chkconfig activemq on
chkconfig activemq off
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

编程圈子

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值