在Fedora8上安装使用ActiveMQ5.8

【ActiveMQ安装】

ActiveMQ在win平台的安装简单,在Linux Fedora上安装也不难,解压就可以了。以下是我总结的步骤:

第一步,从以下地址下载apache-activemq-5.8.0-bin.tar

http://apache.fayea.com/apache-mirror/activemq/apache-activemq/5.8.0/apache-activemq-5.8.0-bin.tar.gz

第二步,解压

#tar -xzvf apache-activemq-5.8.0-bin.tar

执行完了得到目录apache-activemq-5.8.0

【AcitveMQ启动与关闭】

要运行ActiveMQ,进入目录apache-activemq-5.8.0/bin,执行

#./activemq start就行了。

如果要关闭ActiveMQ,需要Kill进程,首先执行以下命令:

# ps -ef|grep activemq
root      2832     1  1 00:37 pts/1    00:00:11 /usr/java/jdk1.7.0_25/bin/java -Xms1G -Xmx1G -Djava.util.logging.config.file=logging.properties -Dcom.sun.management.jmxremote -Djava.io.tmpdir=/home/hy/activemq/apache-activemq-5.8.0/tmp -Dactivemq.classpath=/home/hy/activemq/apache-activemq-5.8.0/conf; -Dactivemq.home=/home/hy/activemq/apache-activemq-5.8.0 -Dactivemq.base=/home/hy/activemq/apache-activemq-5.8.0 -Dactivemq.conf=/home/hy/activemq/apache-activemq-5.8.0/conf -Dactivemq.data=/home/hy/activemq/apache-activemq-5.8.0/data -jar /home/hy/activemq/apache-activemq-5.8.0/bin/activemq.jar start
root      2951  2739  0 00:46 pts/1    00:00:00 grep activemq

再Kill掉2832所在的进程就行了。
# kill 2832

【进入ActiveMQ的Web管理界面】

如果要进入ActiveMQ的Web管理界面,在FireFox的地址栏输入http://localhost:8161/admin,在弹出的对框框中输入用户名admin,密码admin,就能进去了(如果想增加用户,可以在文件conf/jetty-realm.properties中按原有模式 [用户名:密码,组] 来增加用户)。

上文如果有什么问题,欢迎您指出,先谢谢了。

原文地址:https://www.cnblogs.com/heyang78/p/3270610.html