NoeLiYa commented on issue #9518:
URL: https://github.com/apache/rocketmq/issues/9518#issuecomment-3112232211

   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/
   `


-- 
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