1000字范文,内容丰富有趣,学习的好帮手!
1000字范文 > Docker安装ActiveMQ(docker-compose.yml)

Docker安装ActiveMQ(docker-compose.yml)

时间:2023-11-09 11:55:00

相关推荐

Docker安装ActiveMQ(docker-compose.yml)

Docker安装ActiveMQ(docker-compose.yml)

前置条件

请先安装Docker

创建docker-compose.yml文件

version: '2'services:#activemq容器activemq:#name: myactivemq#定义主机名hostname: myactivemq#使用的镜像image: webcenter/activemq#容器的映射端口ports:- 61617:61616- 8162:8161restart: always#定义挂载点volumes:- ./data/activemq:/data/activemq- ./var/log/activemq:/var/log/activemq

将以上文件保存为docker-compose.yml文件

启动docker-compose脚本

docker-compose up

启动日志

AppledeMacBook-Pro:activemq apple$ docker-compose upPulling activemq (webcenter/activemq:)...latest: Pulling from webcenter/activemq7dcf5a444392: Pull complete9eebba75a87f: Pull complete1f0440d87cc7: Pull completedacd0555c1b4: Pull completeb0f19aa05a94: Pull complete4796f64423b2: Pull complete5d994b710cb9: Pull complete313a84c05d3c: Pull complete1d6a562461f1: Pull completee25558998b21: Pull complete1423ae5a1b0b: Pull complete8d4e082d1ca6: Pull complete098d68aaa4ae: Pull completeCreating activemq_activemq_1 ... doneAttaching to activemq_activemq_1activemq_1 | -04-16 01:50:50,441 CRIT Supervisor running as root (no user in config file)activemq_1 | -04-16 01:50:50,441 WARN Included extra file "/etc/supervisor/conf.d/cron.conf" during parsingactivemq_1 | -04-16 01:50:50,442 WARN Included extra file "/etc/supervisor/conf.d/activemq.conf" during parsingactivemq_1 | -04-16 01:50:50,450 INFO RPC interface 'supervisor' initializedactivemq_1 | -04-16 01:50:50,450 CRIT Server 'unix_http_server' running without any HTTP authentication checkingactivemq_1 | -04-16 01:50:50,451 INFO supervisord started with pid 1activemq_1 | -04-16 01:50:51,455 INFO spawned: 'cron' with pid 15activemq_1 | -04-16 01:50:51,457 INFO spawned: 'activemq' with pid 16activemq_1 | -04-16 01:50:53,146 INFO success: cron entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)activemq_1 | -04-16 01:50:53,147 INFO success: activemq entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

管理页面

本地地址:127.0.0.1:8162

登陆账号:admin/admin

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。