标签:
1、下载activemq,我的版本是apache-activemq-5.14.1
2、tar -xzvf apache-activemq-5.14.1-bin.tar.gz
3、在/etc/init.d/目录增加增加activemq文件,文件内容为:
#!/bin/sh
#
# /etc/init.d/activemq
# chkconfig: 345 63 37
# description: activemq servlet container.
# processname: activemq 5.5
# Source function library.
#. /etc/init.d/functions
# source networking configuration.
#. /etc/sysconfig/network
#export JAVA_HOME=/
export CATALINA_HOME=/usr/local/activemq/apache-activemq-5.14.1
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
4、执行chmod 777 activemq命令
5、访问地址:http://IP地址:8161/
标签:
原文地址:http://www.cnblogs.com/zhi-leaf/p/5932011.html