You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by "huangsunting (via GitHub)" <gi...@apache.org> on 2024/04/14 10:35:24 UTC

Re: [I] 求助 单机通过docker-compose部署5.1.3 [rocketmq-docker]

huangsunting commented on issue #88:
URL: https://github.com/apache/rocketmq-docker/issues/88#issuecomment-2054002070

   官方文档比较坑,甚至没有docker的部署示例。。。
   rocketmq5.x引入了proxy,需要开放一下端口,不然访问不了。
   
   1.先简单安装一下,8081是grpc访问端口,8080是remoting访问(如果需要)
   docker run -d
   --name rmqbroker
   --net rmq_net
   -p 10911:10911 -p 10909:10909 -p 8081:8081
   --privileged=true
   apache/rocketmq:5.2.0 sh mqbroker -n rmqnamesrv:9876 --enable-proxy
   
   2.拷贝文件后,删除容器
   docker cp rmqbroker:/home/rocketmq/rocketmq-5.2.0/conf /你的目录/docker/rocketmq/broker/conf
   
   3.重新安装,endpoints=localhost:8081
   docker run -d
   --name rmqbroker
   --net rmq_net
   -p 10911:10911 -p 10909:10909 -p 8081:8081 -p 8080:8080
   --privileged=true
   -v 你的目录/docker/rocketmq/broker/logs:/home/rocketmq/logs
   -v 你的目录/docker/rocketmq/broker/store:/home/rocketmq/store
   -v 你的目录/docker/rocketmq/broker/conf:/home/rocketmq/rocketmq-5.2.0/conf
   -e "MAX_HEAP_SIZE=1024M"
   apache/rocketmq:5.2.0 sh mqbroker -n rmqnamesrv:9876 --enable-proxy -c /home/rocketmq/rocketmq-5.2.0/conf/broker.conf


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org