docker-compose 部署rabbitmq 15672打不开
如果docker-compose的rabbitmq镜像后缀不是-management如:3.7.4-management,则需要进入容器中手动启动插件
部署rabbitmq后需要启动插件的命令:
rabbitmq-plugins enable rabbitmq_management
一定记得挂载的目录,一定要给权限
rabbitmq: image: rabbitmq:3.7.4 ports: - 5672:5672 - 15672:15672 volumes: - ./rabbitmq_data:/var/lib/rabbitmq environment: RABBITMQ_DEFAULT_USER: "root" RABBITMQ_DEFAULT_PASS: "123456" restart: always