1. 在 http://activemq.apache.org/ 下载 ActiveMQ。Windows 系统选择下载 apache-activemq-x.x.x-bin.zip,Unix/Linux 系统下载 apache-activemq-x.xx.x-bin.tar.gz
[huey@huey-K42JE ~]$ mkdir activemq
[huey@huey-K42JE ~]$ cd activemq/
[huey@huey-K42JE activemq]$ wget http://apache.fayea.com/activemq/5.10.2/apache-activemq-5.10.2-bin.tar.gz
2. 解压 apache-activemq-x.x.x-bin.zip 或 apache-activemq-x.xx.x-bin.tar.gz
[huey@huey-K42JE activemq]$ tar zxvf apache-activemq-5.10.2-bin.tar.gz
3. 在 bin 目录下运行启动脚本
[huey@huey-K42JE activemq]$ cd apache-activemq-5.10.2/bin/linux-x86-64/
[huey@huey-K42JE linux-x86-64]$ ./activemq start
4. 可访问 http://localhost:8161/admin/ 管理 ActiveMQ,登录的用户名密码配置在 conf/users.properties 文件中,默认为 admin/admin
[huey@huey-K42JE linux-x86-64]$ curl -I -u "admin:admin" http://localhost:8161/admin/
HTTP/1.1 200 OK
Content-Type: text/html;charset=UTF-8
Set-Cookie: JSESSIONID=91ui22xunbhk9hhpcdy56xc8;Path=/admin
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Length: 8192
Server: Jetty(7.6.9.v20130131)