我通过docker-compose搭建的rocketmq,启动是正常的通过Java连接报错什么原因?[阿里云消息队列MQ]

“我通过docker-compose搭建的rocketmq,启动是正常的,通过Java连接报错,错误信息如下
我的配置如下:
docker -compose配置如下:version: ‘3.8’services: rmqnamesrv: image: apache/rocketmq:5.1.0 container_name: rmqnamesrv ports: – 9876:9876 restart: always privileged: true volumes: – ./rocketmq/nameServer/store:/home/rocketmq/store – ./rocketmq/nameServer/logs:/home/rocketmq/logs #- ./rocketmq/nameServer/bin/runserver.sh:/home/rocketmq/rocketmq-5.1.0/bin/runserver.sh environment: – MAX_HEAP_SIZE=256M – HEAP_NEWSIZE=128M command: [“”sh””,””mqnamesrv””] broker: image: apache/rocketmq:5.1.0 container_name: rmqbroker ports: – 10909:10909 – 10911:10911 restart: always privileged: true volumes: – ./rocketmq/broker/logs:/home/rocketmq/logs – ./rocketmq/broker/store:/home/rocketmq/store – ./rocketmq/broker/conf/broker.conf:/home/rocketmq/rocketmq-5.1.0/conf/broker.conf # – /usr/local/rocketmq/broker/bin/runbroker.sh:/home/rocketmq/rocketmq-5.1.0/bin/runbroker.sh depends_on: – ‘rmqnamesrv’ environment: – NAMESRV_ADDR=rmqnamesrv:9876 – MAX_HEAP_SIZE=512M – HEAP_NEWSIZE=256M command: [“”sh””,””mqbroker””,””-c””,””/home/rocketmq/rocketmq-5.1.0/conf/broker.conf””] rmqdashboard: image: apacherocketmq/rocketmq-dashboard:latest container_name: rocketmq-dashboard ports: – 8080:8080 restart: always privileged: true depends_on: – ‘rmqnamesrv’ environment: – JAVA_OPTS= -Xmx256M -Xms256M -Xmn128M -Drocketmq.namesrv.addr=rmqnamesrv:9876 -Dcom.rocketmq.sendMessageWithVIPChannel=false
我用的版本是5.1.0这个应该如何修改下,我在网上找了好久,没有一个正确答案的。”

「点点赞赏,手留余香」

    还没有人赞赏,快来当第一个赞赏的人吧!
=====这是一个广告位,招租中,联系qq 78315851====