我通过自制软件在我的mac上下载了rabbitmq。按照这些说明我将sbin添加到路径然后调用:
$ rabbitmq-server
并收到以下错误:
``` BOOT FAILED ===========
Error description:
{error,
{cannot_delete_plugins_expand_dir,
["/usr/local/var/lib/rabbitmq/mnesia/rabbit@localhost-plugins-expand",
{cannot_delete,
"/usr/local/var/lib/rabbitmq/mnesia/rabbit@localhost-plugins-expand/amqp_client-3.3.2/ebin/amqp_auth_mechanisms.beam",
eacces}]}}
Log files (may contain more information):
/usr/local/var/log/rabbitmq/rabbit@localhost.log
/usr/local/var/log/rabbitmq/rabbit@localhost-sasl.log
Stack trace:
[{rabbit_plugins,prepare_plugins,3,
[{file,"src/rabbit_plugins.erl"},{line,123}]},
{rabbit,'-boot/0-fun-1-',0,[{file,"src/rabbit.erl"},{line,332}]},
{rabbit,start_it,1,[{file,"src/rabbit.erl"},{line,354}]},
{init,start_it,1,[]},
{init,start_em,1,[]}]
{"init terminating in do_boot",{rabbit,failure_during_boot,{error {cannot_delete_plugins_expand_dir,["/usr/local/var/lib/rabbitmq/mnesia/rabbit@localhost plugins-expand",{cannot_delete,"/usr/local/var/lib/rabbitmq/mnesia/rabbit@localhost-plugins-expand/amqp_client-3.3.2/ebin/amqp_auth_mechanisms.beam",eacces}]}}}}
Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
之前有人遇到此错误吗?
答案 0 :(得分:3)
这对我有用 - sudo rm -rf / usr / local / var / lib / rabbitmq /
答案 1 :(得分:1)
我遇到了同样的问题,它应该是由访问错误引起的
您只需要更改对rabbitmq用户的访问权限。 然后它奏效了。
chown -R rabbitmq:rabbitmq /var/lib/rabbitmq/mnesia/rabbit@l-pg/msg_store_transient
答案 2 :(得分:1)
另一种选择是尝试使用sudo rabbitmq-server
启动具有正确用户权限的服务器
答案 3 :(得分:0)
检查权限:
sudo chown -R rabbitmq:rabbitmq /var/lib/rabbitmq/