Docker安装 activemq

1、下载镜像

[root@tseng /]# docker pull rmohr/activemq
Using default tag: latest
Trying to pull repository docker.io/rmohr/activemq ... 
latest: Pulling from docker.io/rmohr/activemq
05d1a5232b46: Pull complete 
5cee356eda6b: Pull complete 
89d3385f0fd3: Pull complete 
65dd87f6620b: Pull complete 
78a183a01190: Pull complete 
1a4499c85f97: Pull complete 
2c9d39b4bfc1: Pull complete 
1b1cec2222c9: Pull complete 
3d16996d92ad: Pull complete 
aa7d1fb483cc: Pull complete 
Digest: sha256:4ad56da52396f628bfb1af314e467daff35cdfc6f77ddce5aa27e614663f0c3a
Status: Downloaded newer image for docker.io/rmohr/activemq:latest
[root@tseng /]#

2、创建数据卷用来存储配置文件和数据

[root@tseng /]# docker volume create activemq_conf
[root@tseng ~]# docker volume create activemq_data

3、启动镜像

[root@tseng ~]# docker run -it -d -p 61616:61616 -p 8161:8161 --name activemq -v activemq_conf:/mnt/conf -v activemq_data:/mnt/data rmohr/activemq
78e137d5e39e9b3768e6e6a93c22b07d4c3ad2457f2b0e0aaaae413b1e88bd52
[root@tseng ~]# 

4、访问web界面,IP地址:8161 登录名和密码都是admin

        阿里云ecs:开通61616和8161端口

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值