zoukankan      html  css  js  c++  java
  • Docker安装rabbitmq

    ②直接用docker search 搜索,默认下载标签为latest的镜像(无法打开web管理页面)

    复制代码
    [testhadoop@sz-145-centos101 ~]$ sudo docker search rabbitmq
    NAME                                       DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
    rabbitmq                                   RabbitMQ is an open source multi-protocol ...   2691      [OK]       
    bitnami/rabbitmq                           Bitnami Docker Image for RabbitMQ               30                   [OK]
    tutum/rabbitmq                             Base docker image to run a RabbitMQ server      19                   
    frodenas/rabbitmq                          A Docker Image for RabbitMQ                     12                   [OK]
    kbudde/rabbitmq-exporter                   rabbitmq_exporter for prometheus                11                   [OK]
    arm32v7/rabbitmq                           RabbitMQ is an open source multi-protocol ...   7                    
    cyrilix/rabbitmq-mqtt                      RabbitMQ MQTT Adapter                           7                    [OK]
    gonkulatorlabs/rabbitmq                    DEPRECATED: See maryville/rabbitmq              5                    [OK]
    aweber/rabbitmq-autocluster                RabbitMQ with the Autocluster Plugin            4                    
    pivotalrabbitmq/rabbitmq-autocluster       RabbitMQ with the rabbitmq-autocluster plu...   3                    
    pivotalrabbitmq/rabbitmq-server-buildenv   Image used to build and test RabbitMQ serv...   3                    
    authentise/rabbitmq                        A RabbitMQ image that will run a bash scri...   2                    [OK]
    deadtrickster/rabbitmq_prometheus          RabbitMQ + Prometheus RabbitMQ Exporter pl...   2                    
    henrylv206/rabbitmq-autocluster            RabbitMQ Cluster                                2                    [OK]
    riftbit/rabbitmq3                          RabbitMQ 3.x Container based on Alpine Lin...   1                    
    复制代码

    ps:如果是普通用户登录,需要sudo,不然会提示错误

    [testhadoop@sz-145-centos101 ~]$ docker search rabbitmq
    Get http:///var/run/docker.sock/v1.19/images/search?term=rabbitmq: dial unix /var/run/docker.sock: permission denied. Are you trying to connect to a TLS-enabled daemon without TLS?

    2.下载镜像(有时候网络问题超时,多尝试几次即可。我这里选择的是可以访问web管理界面的tag)

    sudo docker pull rabbitmq:management

    3.创建容器并运行(15672是管理界面的端口,5672是服务的端口。这里顺便将管理系统的用户名和密码设置为admin admin)

    docker run -dit --name Myrabbitmq -e RABBITMQ_DEFAULT_USER=admin -e RABBITMQ_DEFAULT_PASS=admin -p 15672:15672 -p 5672:5672 rabbitmq:management  

    使用宿主机IP加15672 访问容器的管理端
  • 相关阅读:
    SQL注入攻击技术(二)---注入分类
    SQL注入攻击技术(一)--原理解析
    网络服务器攻击渗透测试(MS17-010)
    windows10远程连接kali与MSF更新
    JavaWeb学习:SSH整合(无障碍整合)
    JavaWeb学习:Spring的事务管理
    JavaWeb学习:Spring的JDBC的模板
    JavaWeb学习:Spring的AOP的开发(AspectJ的注解的方式)
    JavaWeb学习:Spring的AOP的开发(AspectJ的XML的方式)
    JavaWeb学习:AOP初识
  • 原文地址:https://www.cnblogs.com/dvbbs2012/p/14771478.html
Copyright © 2011-2022 走看看