linux activeMQ安装

    xiaoxiao2021-12-14  22

    1.从http://activemq.apache.org/download.html  下载apache-activemq-5.8.0-bin.tar.gz包

    2.解压到当前目录:tar zxvf apache-activemq-5.8.0-bin.tar.gz

    3.进入到bin目录 cd   /usr/lib/jvm/activeMQ/apache-activemq-5.8.0/bin,授权:chmod 775 activemq

    4.配置环境,进入到apache-activemq-5.8.0目录:bin/activemq setup ~/.activemqrc

    5.启动:bin/activemq start

     控制台输出:

    INFO: Loading '/root/.activemqrc' INFO: Using java '/usr/lib/jvm/jdk1.7/bin/java' INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details INFO: pidfile created : '/usr/lib/jvm/activeMQ/apache-activemq-5.8.0/data/activemq-iZ117ya01pxZ.pid' (pid '2642')

    6.停止: bin/activemq stop

    7.日志输出到指定的日志文件中:bin/activemq start > /tmp/smlog  2>&1 &

    日志输出到/tmp/smlog 和 apache-activemq-5.8.0/data/activemq.log   文件中。

    查看启动情况:

    netstat -ntlp|grep 8161

    netstat -an|grep 61616

    ps -ef | grep activemq

    最后访问:http://ip:8161/admin

    转载请注明原文地址: https://ju.6miu.com/read-962496.html

    最新回复(0)