首页 > 其他分享 >docker rabbit启动失败,报错:erlang.cookie must be accessible by owner only

docker rabbit启动失败,报错:erlang.cookie must be accessible by owner only

时间:2023-02-04 22:01:14浏览次数:63  
标签:accessible rabbitmq cookie rabbit 挂载 报错 docker erlang

环境:

操作系统:Centos 7、docker

执行:

docker start mall-rabbit

现象:

容器启动数秒后,启动失败

查看失败原因:

docker logs mall-rabbit

 

 解析Json发现问题指向Cookie file /var/lib/rabbitmq/.erlang.cookie must be accessible by owner only

问题原因:

.erlang.cookie 权限不够

解决办法:

 1. 查看本地挂载,打开docker-compose.yml 及.env 查看本地挂载路径

 

2. 修改文件挂载为 /mydata/rabbitmq/data:/var/lib/rabbitmq/mnesia #数据文件挂载

3. 重新build rabbitmq: docker-compose build -no--cache mall-rabbitmq

标签:accessible,rabbitmq,cookie,rabbit,挂载,报错,docker,erlang
From: https://www.cnblogs.com/JAs1mple/p/17092488.html

相关文章