Activemq版本:5.15.5
下载地址: wget http://apache.fayea.com/activemq/5.15.5/apache-activemq-5.15.5-bin.tar.gz
或者:http://activemq.apache.org/activemq-5155-release.html 下载上传到 linux
#解压activemq压缩包.
tar -zxf apache-activemq-5.15.5-bin.tar.gz
#切换到bin目录
[root@192 ~]# cd apache-activemq-5.15.5/bin/
[root@192 bin]# ./activemq start
INFO: Loading '/root/apache-activemq-5.15.5//bin/env'
INFO: Using java '/usr/bin/java'
INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details
#activemq启动,进程2776
INFO: pidfile created : '/root/apache-activemq-5.15.5//data/activemq.pid' (pid '2776')
#查看mq状态
[root@192 bin]# ps aux|grep activemq
root 2776 52.3 1.1 1382836 94220 pts/1 Sl 14:44 0:04 /usr/bin/java -Xms64M -Xmx1G -Djava.util.logging.config.file=logging.properties -Djava.security.auth.login.config=/root/apache-activemq-5.15.5//conf/login.config -Dcom.sun.management.jmxremote -Djava.awt.headless=true -Djava.io.tmpdir=/root/apache-activemq-5.15.5//tmp -Dactivemq.classpath=/root/apache-activemq-5.15.5//conf:/root/apache-activemq-5.15.5//../lib/: -Dactivemq.home=/root/apache-activemq-5.15.5/ -Dactivemq.base=/root/apache-activemq-5.15.5/ -Dactivemq.conf=/root/apache-activemq-5.15.5//conf -Dactivemq.data=/root/apache-activemq-5.15.5//data -jar /root/apache-activemq-5.15.5//bin/activemq.jar start
root 2818 0.0 0.0 4356 732 pts/1 S+ 14:44 0:00 grep activemq
然后访问地址:
http://192.168.0.106:8161/
图2
点击【Manage ActiveMQ broker】-> 默认账号密码为 admin
图3到此单机版ActiveMq安装完毕.
#在 activemq.xml 修改配置.
[root@192 bin]# cd ../conf/
[root@192 conf]# vim activemq.xml
后续补充使用demo.
网友评论