joewong-rf commented on issue #9518:
URL: https://github.com/apache/rocketmq/issues/9518#issuecomment-3116829285

   > 
[rocketmqOnly.zip](https://github.com/user-attachments/files/21401831/rocketmqOnly.zip)
   > 
   > emmmm我这里也是,有点抽象了,后面发现是没有给挂在的容器设置访问权限,然后我就出现了能发送消息但是没有可以消费的情况,不知道你是不是这种情况 
容器内部是只允许rocketmq的用户有访问权限,但是我用容器映射进行绑定挂在的话,容器的权限就变成root了,然后rockemq用户就没有权限写入commitlog的文件取存储消息数据,这时候启动容器后还要给store目录下的允许rockemq用户进行操作
 `chmod 777 /home/rocketmq/ -R && chown -R rocketmq:rocketmq 
/home/rocketmq/logs/ && chown -R rocketmq:rocketmq /home/rocketmq/store/ && ls 
-ld /home/rocketmq/store/ `
   > 
   > 也可能是rmq-proxy需要加这个"enableAclRpcHookForClusterMode": true,选项
   > 
   > 
或许这个大佬的文章详细的可以给你一点参考https://blog.zcw159357.com/article/1/2025-03-15-0048.html
   > 
   > 我的配置文件参考,或许可以帮助到你
   
   参考配置测试之后,依然不可以消费消息


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to