ActiveMQ学习总结——(一)CentOS 7安装ActiveMQ-5.15.2

CentOS 7安装ActiveMQ-5.15.2

1.选择安装目录,下载apache-activemq-5.15.2-bin.tar

wget http://activemq.apache.org/path/tofile/apache-activemq-5.15.2-bin.tar.gz

2.解压

tar -zxvf apache-activemq-5.15.2-bin.tar.gz 

3.进入解压目录

[root@localhost server]# cd apache-activemq-5.15.2/

[root@localhost apache-activemq-5.15.2]# ls
activemq-all-5.15.2.jar  data      lib      README.txt  webapps-demo
bin                      docs      LICENSE  tmp
conf                     examples  NOTICE   webapps
[root@localhost apache-activemq-5.15.2]# 

4.进入bin, 执行启动

[root@localhost bin]# ls
activemq       activemq.jar  linux-x86-32  macosx
activemq-diag  env           linux-x86-64  wrapper.jar
[root@localhost bin]# ./activemq start 
INFO: Loading '/server/apache-activemq-5.15.2//bin/env'
INFO: Using java '/usr/bin/java'
INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details
INFO: pidfile created : '/server/apache-activemq-5.15.2//data/activemq.pid' (pid '36733')
[root@localhost bin]# 

6.查看是否启动成功

[root@localhost bin]# ps -ef|grep activemq
root     11677     1  0 10:13 ?        00:00:07 /usr/bin/java -Xms64M -Xmx1G -Djava.util.logging.config.file=logging.properties -Djava.security.auth.login.config=/server/apache-activemq-5.15.2//conf/login.config -Dcom.sun.management.jmxremote -Djava.awt.headless=true -Djava.io.tmpdir=/server/apache-activemq-5.15.2//tmp -Dactivemq.classpath=/server/apache-activemq-5.15.2//conf:/server/apache-activemq-5.15.2//../lib/: -Dactivemq.home=/server/apache-activemq-5.15.2/ -Dactivemq.base=/server/apache-activemq-5.15.2/ -Dactivemq.conf=/server/apache-activemq-5.15.2//conf -Dactivemq.data=/server/apache-activemq-5.15.2//data -jar /server/apache-activemq-5.15.2//bin/activemq.jar start
root     33281 29543  0 10:34 pts/0    00:00:00 grep --color=auto activemq
[root@localhost bin]# 

7.打开页面验证,输入地址 localhost:8161,点击Manage ActiveMQ broker,用户名和密码均是admin

登录页面

8.关闭ActiveMQ

[root@localhost bin]# ./activemq stop
INFO: Loading '/server/apache-activemq-5.15.2//bin/env'
INFO: Using java '/usr/bin/java'
INFO: Waiting at least 30 seconds for regular process termination of pid '36733' : 
Java Runtime: Oracle Corporation 1.8.0_65 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.65-3.b17.el7.x86_64/jre
  Heap sizes: current=63360k  free=62653k  max=1013632k
    JVM args: -Xms64M -Xmx1G -Djava.util.logging.config.file=logging.properties -Djava.security.auth.login.config=/server/apache-activemq-5.15.2//conf/login.config -Dactivemq.classpath=/server/apache-activemq-5.15.2//conf:/server/apache-activemq-5.15.2//../lib/: -Dactivemq.home=/server/apache-activemq-5.15.2/ -Dactivemq.base=/server/apache-activemq-5.15.2/ -Dactivemq.conf=/server/apache-activemq-5.15.2//conf -Dactivemq.data=/server/apache-activemq-5.15.2//data
Extensions classpath:
  [/server/apache-activemq-5.15.2/lib,/server/apache-activemq-5.15.2/lib/camel,/server/apache-activemq-5.15.2/lib/optional,/server/apache-activemq-5.15.2/lib/web,/server/apache-activemq-5.15.2/lib/extra]
ACTIVEMQ_HOME: /server/apache-activemq-5.15.2
ACTIVEMQ_BASE: /server/apache-activemq-5.15.2
ACTIVEMQ_CONF: /server/apache-activemq-5.15.2/conf
ACTIVEMQ_DATA: /server/apache-activemq-5.15.2/data
Connecting to pid: 36733
INFO: failed to resolve jmxUrl for pid:36733, using default JMX url
Connecting to JMX URL: service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
INFO: Broker not available at: service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
...............................
INFO: Regular shutdown not successful,  sending SIGKILL to process
INFO: sending SIGKILL to pid '36733'
[root@localhost bin]# 
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值