1. 下载ActiveMQ
网址:http://activemq.apache.org/activemq-5100-release.html
当前最新版本:apache-activemq-5.10.0-bin.tar.gz
下载文件放置于~/Downloads目录下
2. 安装
新建一个文件夹
sudo mkdir ~/apache-activemq
将下载的压缩文件解压到该文件夹下
sudo tar xvfz ~/Downloads/apache-activemq-5.10.0-bin.tar.gz -C ~/apache-activemq/则ActiveMQ的安装目录为:~/apache-activemq/apache-activemq-5.10.0
3. 运行
(1) 普通启动
cd ~/apache-activemq/apache-activemq-5.10.0
bin/activemq start
4. 验证
netstat -an | grep 61616
5. 关闭activemq
ps -ef | grep activemq
然后把对应的进程杀掉,假设找到的进程编号为 8669
kill -9 8669
参考:http://blog.csdn.net/workflow/article/details/6825718