在opt/下
wget http://archive.apache.org/dist/activemq/5.14.5/apache-activemq-5.14.5-bin.tar.gz
解压
tar -xzf apache-activemq-5.14.5-bin.tar.gz
重命令:mv apache-activemq-5.14.5-bin.tar.gz activemq
然后进入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 CATALINA_HOME=/opt/activemq
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
修改activemq密码
在conf文件下
jetty-realm.properties
即可修改密码
#查看activemq状态 service activemq status
#其他和关闭activemq服务service activemq start
service activemq stop