activeMQ

1.新建一个文件夹activeMQ
  mkdir /server

2.授权 
  chmod 777 /server

3.下载activeMQ安装包,拷贝到/activeMQ目录下
apache-activemq-5.6.0-bin.tar.gz,下载地址http://activemq.apache.org/download.html

4.解压文件到运行目录/activeServer
tar -xzvf /server/apache-activemq-5.6.0-bin.tar.gz

5.修改activemq运行文件的权限 
cd /server/apache-activemq-5.6.2/bin 
chmod 755 activemq 
运行./activemq

6.运行
三种运行方式:
(1)普通启动 ./activemq start
(2)启动并指定日志文件 ./activemq start >tmp/smlog
(3)后台启动方式nohup ./activemq start >/tmp/smlog
前两种方式下在命令行窗口关闭时或者ctrl+c时导致进程退出,采用后台启动方式则可以避免这种情况

7.检查已经启动
 ActiveMQ默认采用61616端口提供JMS服务,使用8161端口提供管理控制台服务,执行以下命令以便检验是否已经成功启动ActiveMQ服务。
打开端口:nc -lp 61616 &
查看哪些端口被打开 netstat -anp
查看61616端口是否打开: netstat -an | grep 61616
检查是否已经启动:
(1).查看控制台输出或者日志文件 
(2).直接访问activemq的管理页面:http://localhost:8161/admin/

8.关闭
如果开启方式是使用(1)或(2),则直接ctrl+c或者关闭对应的终端即可 
如果开启方式是(3),则稍微麻烦一点: 
先查找到activemq对应的进程: 
ps -ef | grep activemq 
然后把对应的进程杀掉,假设找到的进程编号为 168168 
kill 168168 
======================

相关文献
activeMQ安装 :http://feirou520.iteye.com/blog/291284
百度文库:http://wenku.baidu.com/view/e9ea05dc7f1922791688e8f2.html###

 

 
 
 
 
阅读(28183) |  评论(0)
推荐 转载
 
 
clannon
 
liyanzhuo@yeah
 
wwdubao
 
小白
 
yangyong20002@126
 
bird_studio
 
love_vvl
 
xiajiqiu1990
 
 
<iframe id="lmid_iframe" style="margin: 0px; padding: 0px; border-width: 0px; border-style: initial; display: block;" src="http://g.163.com/r?site=netease&amp;affiliate=blog&amp;cat=article&amp;type=column590x100&amp;location=1" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" width="590" height="100"></iframe>
关闭
玩LOFTER,免费冲印20张照片,人人有奖!      我要抢>
评论
  登录后你可以发表评论,请先登录。 登录>>
 
 
 
 
 
 

网易公司版权所有 ©1997-2016

<iframe class="ztag adv-iframe" style="margin: 0px; padding: 0px; border-width: 0px; border-style: initial; display: block;" src="http://g.163.com/r?site=netease&amp;affiliate=blog&amp;cat=homepage&amp;type=logo300x250&amp;location=10" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" width="300" height="250"></iframe>
 
<iframe style="margin: 0px; padding: 0px; border-width: 0px; border-style: initial;" src="http://ens.endsp.net/pjk/mdk/dw.html?b4,ca-pub-9207945554632684,6713963650,300,250,tuku.xyq.163.com" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" width="300" height="250"></iframe>
 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值