一、下载activemq,下载地址:http://archive.apache.org/dist/activemq。测试版本为apache-activemq-5.14.1。apache
二、在/ursr/local/目录下新建activemq文件夹,并进入该文件夹,执行以下命令解压文件。测试
cd /ursr/local mkdir activemq tar -xzvf apache-activemq-5.14.1-bin.tar.gz
三、在/etc/init.d/目录增长增长activemq文件,文件内容为:spa
cd /etc/init.d/ vi activemq
1rest 2code 3ip 4ci 5servlet 6it 7io 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
|
四、对activemq文件授予权限。
chmod 777 activemq
五、设置开机启动并启动activemq
chkconfig activemq on service activemq start
五、访问地址:http://IP地址:8161/。
访问成功,ActiveMQ安装完毕。默认用户名密码为:admin/admin。
六、其余
查看activemq状态
service activemq status
其余和关闭activemq服务
service activemq start service activemq stop
设置开机启动或不启动activemq服务
chkconfig activemq on chkconfig activemq off