下载activeMQ压缩包解压。
1.运行
(1) bin/activemq start
(2) bin/activemq start >tmp/smlog 2>&1 &
(3) nohup bin/activemq start >tmp/smlog 2>&1 &
前两种在通过命令行,ssh客户端,ctrl+c时会同时关闭服务,第三种不会
2.验证是否开启
(1) 查看日志
(2) 访问管理页面local:8161/admin
3.关闭
如果是(1),(2)种开启方式,ctrl+c.如果是第三种,杀进程
ps -ef | grep activemq
kill -9 pid